Re:Rust newcomers are 70x less likely to create vulnerabilit...
by oneshtein on Thursday November 09, 2023 @03:47AM
(#38202575)
Rust can be used as C, because it has pointers, like C. However, Rust has better syntax, more syntax sugar, automatic memory management, automatic memory manager and borrow checker. So, Rust is simpler than C to learn.
Re:Rust newcomers are 70x less likely to create vulnerabilit...
by usrbinbash on Saturday November 11, 2023 @08:17AM
(#38230052)
> However, Rust has better syntax
Better by what metric?
> more syntax sugar
More features and syntactic concepts don't make a language easier to learn.
No, it isn't, by any metric. I personally know people who learned C in a week. I learned all basics of the language in 2 weeks as a teenager, with nothing but K&R as learning materials.
If you disagree, point out by which metrics you consider Rust to be easier to learn than C, and we can have a discussion.
> Rust is hard for older programmers because it's hard to FORGET old habits from other languages, which allowed too much.
No it isn't. First, both newcomers and experienced programmers consider Rust a more complicated language than most of its contemporaries, and if anything a solif experience in multiple programming languages makes it easier to learn the advanced concepts Rust relies on.