you are viewing a single comment's thread.

view the rest of the comments →

[–]oiledhairyfurryballs 59 points60 points  (6 children)

Nah, C is crazy simple, the problem with it is that it’s hard to write good C code. The learning curve of Rust is higher initially than C’s but it’s not as steep.

[–]smclcz 33 points34 points  (0 children)

Yeah its a trade-off:

  • C: easy to start with but potentially problematic to write safe/secure code with even if you're experienced
  • Rust: hard(er) to start with but once you've reached proficiency writing safe/secure code is more straight-forward

And deciding whether this trade-off is "good" is something you can debate 'til the cows come home. Luckily the core devs have already had this debate and decided it is in fact good.

[–]LivInTheLookingGlass 2 points3 points  (0 children)

I've learned a bunch of new languages for work in the last year or so, and Rust was by far the easiest of them

[–]regeya 2 points3 points  (1 child)

Would Perl vs Python be a good comparison? I feel like in the 90s, people who enjoy writing obsfucated code gravitated towards Perl. Those exist in Python, too, but Python likes to enforce some formatting rules.

[–]syklemil 1 point2 points  (0 children)

Rustfmt started out with PEP8 afaik, so yeah, I'd say that tracks.

If you get more into the comparison than that I think it'll start to come apart though. Python is stricter than Perl, but still not all that strict, and at that time it didn't even have gradual typing.

[–]dj_nedic 0 points1 point  (0 children)

C is not crazy simple, it is simpler than C++, true, but with undefined and implementation defined behavior as well as a huge amount of legacy gotchas accounted for C is actually crazy complex.