9 ms·
The Rust's goals of high performance, safety and pay-what-your-use and you-couldn't-hand-code-better won't be sacrificed for sure. The point in ergonomics impro
by GolDDranks 10y ago
The Rust's goals of high performance, safety and pay-what-your-use and you-couldn't-hand-code-better won't be sacrificed for sure. The point in ergonomics improvements is to identify "free lunches" that aren't yet taken advantage of.
That being said, lifetimes and traits being both complex and unfamiliar features, there's always going to be quite of a learning curve. But one can always reduce the amount of papercuts. If nothing else, one can at least make the documentation better, the ecosystem libraries better and error messages even smarter.
- junk_disposal 10y agoCan you say that traits are like Go interfaces?
- steveklabnik 10y agoYes and no; I've always really enjoyed http://softwareengineering.stackexchange.com/questions/247298/how-are-rust-traits-different-from-go-interfaces http://softwareengineering.stackexchange.com/questions/24729... as a comparison between the two. It's old enough that it's before Rust 1.0, so some of the syntax is a _teeny_ bit wrong (int isn't a type any more, you'd use isize) but the macro picture is the same.