4 ms·
> In other words, while clean syntax is luring, in the long run clean and simple semantics is what I think is really important. I agree. And I think that Rust
by pcwalton 13y ago
> In other words, while clean syntax is luring, in the long run clean and simple semantics is what I think is really important.
I agree. And I think that Rust has one of the simplest semantics around in programming languages: the method resolution rules are quite simple, because there is no method overloading and all extension methods have to be explicitly imported to be used. These two restrictions are important for maintainability: the former means that the compiler "never guesses"—multiple applicable methods are a compile time error—and the latter means that you never have to guess about where a method comes from, because it was always defined either alongside the type or defined as part of a trait that was explicitly imported at the call site.