4 ms·
To me, one thing missing from most popular web languages is the single best part of Rust: A well-defined handling of the non-happy path. I'm talking about thin
by LinXitoW 3y ago
To me, one thing missing from most popular web languages is the single best part of Rust: A well-defined handling of the non-happy path.
I'm talking about things like exhaustive "switches", built-in, ENFORCED handling of "missing" values (null, undefined), and finally useful error handling.
I actually don't need any of the baremetal features of Rust. It's just that most of it's "zero-cost" abstractions are still far superior to those of other languages.
- kaba0 3y agoHaskell, Scala, F#, OCaml. (Some dislike it, but Java’s checked exceptions are exact homologous of result types)
- marcosdumay 3y agoThe problem with Java exceptions is that they have very poor generic support. Outside of that, yeah they just differ in very low-level aspects that most developers don't even know about.