|
|
|
|
|
by bluejekyll
2674 days ago
|
|
For me, also primarily a Java person before Rust, it’s datarace safety that captured me. Java’s executors improve the world, but I can’t count the number of concurrency bugs that I had in Java that are not possible in safe Rust. This isn’t just my code, btw, but large teams where it’s hard to disseminate good practices when building threadsafe code. If it had been in Rust, those issues wouldn’t have happened. Other things that I appreciate about Rust over Java is the error handling combined with RAII, doing away with nasty bugs around try’s lacking proper finally statements for closing file handles, etc. Java has its warts, not everything is just about memory safety. |
|
Data race is one other thing, I do have data race issues but that is very rare. Some of the static analysis tools even catch these anti patterns.