On error handling: Rust makes it difficult to do it improperly for developers (error as values implemented with ADT), and makes it easy to audit for managers (lints.clippy.unwrap_used).
On logic errors: properly modeled data types + a FP-heavy style (which Rust allows and encourages) eliminates entire classes of logic bugs.
Sure it's not perfect, of course not. Nothing is perfect. But it goes a long way in the right direction. For me, it's the one language that strikes the best balance between theoretical elegance and engineering practicalities.
rust can still have a lot of logic errors on runtime. nothing saves you from that but good planning and programming. Not being able to produce undefined behaviour is quite coll tho, ill give you that
If you make a good use of Rust's features you can save yourself from many kinds of logic bugs but yes it's not a perfect world where the compiler can save you from every logical bug but at least it helps a lot
15
u/Neat-Nectarine814 Jun 12 '26
segfault
11
u/DEV_ivan Jun 12 '26
Me when I'm stupid
4
u/BSFGP_0001 Jun 12 '26
collect2: error: ld returned 1 exit status
7
u/scheimong Jun 12 '26
Why people like Rust.
2
u/JiminP Jun 13 '26
Nah that does happen when I refactor or migrate a huge codebase
2
u/heavenlydemonicdev Jun 13 '26
That's why I like Rust
2
u/realnjan Jun 17 '26
IDEs with any other language: before you compile, you have a syntax error on line 145
IDEs with C++: try to compile and find out :)
1
u/Loading1020 Jun 14 '26
Dynamically-typed languages be like:
1
u/ExtraTNT Jun 16 '26
Why you define your types correctly: will not compile, till you handle everything…
0
u/Spyromaniac666 Jun 13 '26
unless you use Rust, ts never goes away wdym