nikomatsakis / rust-design-axioms

Discovering and describing Rust's design axioms
https://nikomatsakis.github.io/rust-design-axioms/
Other
66 stars 3 forks source link

"Do the right thing rather than the familiar thing" #16

Open nikomatsakis opened 8 months ago

nikomatsakis commented 8 months ago

I'm not sure how to word this, but I had a thought in passing -- I think there are many points in Rust where we optimized for the long term, choosing to do the thing that will work best once you know how the system works, rather than the thing that makes the system more familiar. Examples would be x..y instead of x..<y, x.await instead of await x, ... I'm not sure what else, but those at least =)