3 ms·
> You can't fix lack of knowledge with a compiler. The original article and the Rust language would beg to differ. The compiler generates detailed, didactic er
by catlifeonmars 5y ago
> You can't fix lack of knowledge with a compiler.
The original article and the Rust language would beg to differ. The compiler generates detailed, didactic error messages with actionable suggestions.
- bluGill 5y agoNote that rust doesn't claim to catch all errors, and the article points out places where it doesn't. In rust it is a lot harder to get into those situations accidentally, but you can.
- cfcosta 5y agoMost of the incorrect code on the article for rust is quite contrived though. It's not perfect, just better, or more strict.
- bluGill 5y agoAny non contrived example would be thousands of lines of code. Rust is meant for those areas where you are forced to do weird things, it does it's best but they don't know how to solve the problem of what they need in a way that can't be misused. Seeing how contrived the examples are makes me more interested in rust.
- cfcosta 5y agoI use it professionally, and can say: it's worth it. Even the warts are minor compared to how polished and intuitive the language feels after you accept it's dogmas (or die fighting against the borrow checker). The error messages are very good, cargo is awesome, rust analyzer is already good but still needs some time to flourish, and the performance in production is really predictable. It's for sure not perfect, but in many aspects it feels like a step forward, so much that sometimes I'm wary on how much I'm relying on the compiler to check my decisions for me.
- 10x-dev 5y agoSo does clang and GCC at this point.
- catlifeonmars 5y agoYes, that supports my point that it’s a useful and helpful thing to add to a compiler.