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

"Portability" as its own axiom? #2

Open nikomatsakis opened 9 months ago

nikomatsakis commented 9 months ago

The (WIP) productivity axiom states (emphasis mine):

Rust users want to focus on solving their problem, not the fiddly details, so Rust is productive. We favor APIs that where the most convenient and high-level option is also the most efficient one. We support portability across operating systems and execution environments by default. We aren't explicit for the sake of being explicit, but rather to surface details we believe are needed.

I think portability is a pretty core value for stdlib design. I wonder if it makes sense to pull out into its own role. The main reasons to do that would be if (a) portabiilty is in tension with productivity or (b) we give portability higher or lower precedence than we give other aspects of productivity.