3 ms·
For me, it's a pleasant syntax to work with. The code structures make a lot of sense to me. I like the approach of using Result return types instead of exceptio
by dhosek 5y ago
For me, it's a pleasant syntax to work with. The code structures make a lot of sense to me. I like the approach of using Result return types instead of exceptions really works well (especially with crates like anyhow and thiserror to abstract away the messiness of how errors are created/propagated) (writing JVM code for my day job, I find myself often wishing for Rust features).
- pjmlp 5y agoAvailable in Kotlin and Scala.
- dhosek 5y agoTrue, although they have to coexist with Java exceptions. Also, they target the JVM (I have a vague notion of there being JVM-to-native compilation projects, although some of what makes the JVM appealing would be difficult to impossible to do in native code).
- pjmlp 5y agoNative code compilers have existed since about 2000 in commercial compilers, and there are JIT caches as well.