News for hackers. Stuff that matters.
Re:What Is Rust's Hole Purpose? by AnimalMuppet on Friday February 18, 2022 @12:44PM (#30388722)
> But the advantage of Rust goes far beyond mere safety...

Could you say what they are?

Re:What Is Rust's Hole Purpose? by dhosek on Friday February 18, 2022 @12:58PM (#30388933)
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).
Re:What Is Rust's Hole Purpose? by pjmlp on Friday February 18, 2022 @04:37PM (#30391440)
Available in Kotlin and Scala.
Re:What Is Rust's Hole Purpose? by dhosek on Friday February 18, 2022 @05:14PM (#30391818)
True, 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).
Re:What Is Rust's Hole Purpose? by pjmlp on Friday February 18, 2022 @05:41PM (#30392131)
Native code compilers have existed since about 2000 in commercial compilers, and there are JIT caches as well.
Re:What Is Rust's Hole Purpose? by leshow on Friday February 18, 2022 @01:58PM (#30389669)
Depends what you are comparing it to, but often listed are features of a modern language & type system: expressive generics, pattern matching, sum & product types, iterator chaining, etc