this post was submitted on 12 Feb 2025
119 points (97.6% liked)

Linux

6067 readers
458 users here now

A community for everything relating to the GNU/Linux operating system

Also check out:

Original icon base courtesy of [email protected] and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 1 week ago (1 children)

Zig is designed as a successor to C, no? So i assume it does syntax and things quite similarly. Rust is not a C-like language, so i dont think this a fair comparison at all.

But in the end, learning syntax isnt the hard part of a new language (even if it is annoying sometimes).

[โ€“] [email protected] 3 points 1 week ago

learning syntax isnt the hard part of a new language

No, it's not, and that's worse, not better. Understanding the pitfalls and quirks of the language, the gotchas and dicey areas where things can go wrong - those are the hard parts, and those are only learned through experience. This makes it even worse, because only Rust experts can do proper code reviews.

TBF, every language is like this. C's probably worse in the foot-gun areas. But the more complex the language, the harder it is for people to get over that barrier of entry, and the fewer that will try. This is a problem of exclusion, and a form of gate keeping that's designed - unintentionally - into the language.