3 ms·
Rust doesn't have iterator invalidation issues or "ConcurrentAccessException" which are very nice for writing highly concurrent code at large scales. Throw in n
by bbatha 8y ago
Rust doesn't have iterator invalidation issues or "ConcurrentAccessException" which are very nice for writing highly concurrent code at large scales. Throw in niceties like no null, result types for better error typing, and a culture of correctness and you've got a really nice language for writing correct software. Go and Java are certainly good at writing correct software too, especially compared to python or javascript, but don't offer anywhere near the same guarantees as rust. I would consider myself a Rust fanboy, but I wouldn't hesitate to use Go or Java in many domains, every tool has its niche.
- sixbrx 8y agoAgree and Rust's biggest benefit to me over most other languages, is being able to give ownership of a mutable structure away, and knowing at compile stage that every part of the program but the receiver loses access to make further modifications to that data. Then the receiver doesn't have to make a defensive copy (which is easy to forget and often hurts performance), or deal with immutable structures where they aren't performant or natural. I'm hoping some easier languages can add this ability - I think Swift might be planning to do some form of this IIRC, hoping to see some other languages follow.