top | item 45472373

(no title)

SomeoneOnTheWeb | 4 months ago

I strongly disagree.

* The performance difference can be pretty massive depending on scenarios. Sure, most programs don't need it, but still * Rust has not only memory safety but full safety around it. For instance, in Java if you iterate over a list while mutating it you'll get a runtime error. In Rust, it won't compile, preventing you from a possible bug later on * The time you spend learning Rust is so much time saved afterwards because the language is specifically designed to reduce the risk of programming errors. Many things like the absence of a `null` value like we have in Java is an immense time saver when your program gets bigger

discuss

order

1718627440|4 months ago

Why do you take it for granted that I can't just iterate and mutate and it works just fine?

afdbcreid|4 months ago

It could work, if iteration is using indices. But honestly I prefer it to be an error, as this is often the sign of a bug.

vouwfietsman|4 months ago

> The time you spend learning Rust is so much time saved afterwards because the language is specifically designed to reduce the risk of programming errors

[Citation needed]