3 ms·
There are entire classes of bugs that cannot happen in (safe) Java/Erlang/Scheme/etc. that can still happen in a "bug free" Rust code base.
by blablableu 4y ago
There are entire classes of bugs that cannot happen in (safe) Java/Erlang/Scheme/etc. that can still happen in a "bug free" Rust code base.
- bluejekyll 4y agoLike? I know that you’re trolling, but looking at Java specifically, the error handling in Rust and RAII pattern in Rust ensures that things like file handles are cleaned up. Modern Java has made this nicer, but it still offers a lot of potential bugs around resource leaks. Sticking with Java, Rust also offers a better story around thread safety, such that sharing mutable state across threads requires types that allow that to work. Finally, Java’s exception handling and null usage generally allows a lot of low hanging fruit bugs to slip through where in Rust these types of errors are far less likely to happen. I never said Rust is “bug free”, I’ve been working with software far to long to make such a provably wrong statement.