this post was submitted on 29 Nov 2024
86 points (95.7% liked)

Asklemmy

44186 readers
1131 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy πŸ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
 

I have met a couple of them in real life, and a few I have met online. The sample is not significant enough to draw any conclusions about their point of view and background.

I am more than interested in your opinions about the personality and political makeup of people who express this type of pro-C bigotry.

you are viewing a single comment's thread
view the rest of the comments
[–] flashgnash@lemm.ee 9 points 4 weeks ago* (last edited 4 weeks ago) (3 children)

It's crazy to me that people don't do this, once you've learned a few languages you can basically just pick up new ones (assuming they don't use entirely foreign concepts like Rust does)

[–] SorteKanin@feddit.dk 3 points 4 weeks ago (2 children)

Which foreign concepts do Rust use? The borrow checker/ownership is new but that's really the only thing that doesn't already exist in some other language.

[–] flashgnash@lemm.ee 1 points 3 weeks ago (1 children)

The borrow checker, the way it handles exceptions and nulls, the way it handles stack/heap (possibly foreign to me because I've never done much on C), composition pattern instead of oop, probably more I'm forgetting

[–] SorteKanin@feddit.dk 3 points 3 weeks ago (1 children)

The borrow checker

This is indeed pretty unique.

the way it handles exceptions and nulls

This is really just the fact that Rust has sum types - but those kinds of types have been used in many functional languages (Haskell for example) for a long time.

the way it handles stack/heap

This is just the same as C and C++ and any other low-level language that requires you to distinguish between the stack and heap.

composition pattern instead of oop

I mean if you're only looking at OOP languages then this will be new, but functional languages have done this for a long time.

So yea, I think a big part of what makes Rust great is that it has managed to take these really, really good ideas from functional programming languages and made them work in a language that is not entirely functional. This leads to a perfect blend/best of both worlds with regards to OOP and functional programming :)

[–] locuester@lemmy.zip 1 points 3 weeks ago

Yeah it’s just the borrow checker and ownership stuff that throws you for a loop. Particularly with large system design

[–] whydudothatdrcrane@lemmy.ml 1 points 3 weeks ago

The borrow checker checks literally that you don't take foreign things, so there is that.

[–] locuester@lemmy.zip 1 points 3 weeks ago (1 children)

Rust can be picked up the same way. I was in the situation you describe. Knew a dozen languages. Picked up rust and really enjoy it. It added a dimension to my thinking (ownership). I feel closer to the metal yet safe. That said, it still gets tricky with system design. That’s where it’s a lot harder due to ownership stuff. Just syntax wise it’s not bad tho

[–] flashgnash@lemm.ee 2 points 3 weeks ago* (last edited 3 weeks ago)

It might be because I'd never used C but I really struggled to pick up rust for a month or so until it stopped feeling like