4 ms·
You may have noticed a subtle change: what was previously called “epochs” is now “editions.” Lots of great stuff coming this year! As always, happy to answer a
by steveklabnik 9y ago
You may have noticed a subtle change: what was previously called “epochs” is now “editions.”
Lots of great stuff coming this year! As always, happy to answer any questions.
- the_mitsuhiko 9y agoWhat happened to "era"?!
- kibwen 9y agoThe bikeshed works in mysterious ways. :P
- username223 9y agoEra, epoch, edition, excretion, excrescence,... I'm looking forward to watching Rust's continued evolution in the new... whatever they decide to call it.
- the_mitsuhiko 9y agoShould have been "cycle" with a fancy name instead of number.
- steveklabnik 9y agoIn the end, all these words are similar enough that we had to make a call. We expect most people to say "Rust 2018" and not use any of these terms; we still need one to be the key in Cargo.toml and the flag to the compiler, so we couldn't just use nothing.
- cesarb 9y agoCould this be used to add an "Ord::clamp" or similar to the stdlib such that it's invisible (and thus wouldn't cause any conflict) to crates with an older "edition"?
- aturon 9y agoYes, it could! There aren't plans to do so yet, but it'd be worth spinning up a thread on internals about this.
- deleted 9y ago[deleted]
- Manishearth 9y agoI think for such things it's preferable to just have a `clamp` method as a static method, i.e. you call it with `Ord::clamp(foo, bar)` instead of `foo.clamp(bar)`. But yes, it could. Generally the trend seems to be to still try to avoid having actual breakages in the editions unless we _have_ to, and this seems like one of those cases where we don't. That said, adding Ord::clamp doesn't technically count as a breakage for Rust, Rust's stability guarantee does not include "we added a method to this trait/type and now you have to disambiguate via UFCS" or "we added a thing to this module and now you have to alias your import" because it's not really possible to have that stability guarantee and continue to evolve the stdlib. That said, given that Ord is in the prelude, the bar for adding stuff to that is much higher. And Rust also cares about the impact of not-technically-breaking changes like these, so we definitely wouldn't just add it as a method.
- squiguy7 9y ago> You can use old editions indefinitely on new compilers; editions are opt-in. This is great to hear! A best-effort backwards compatibility guarantee is important to have for a language that has a lot of development.
- nothrabannosir 9y agoThanks for keeping to normal, obvious names and reducing the cognitive load. I’m not a fan of unnecessary idiosyncrasies so this is a welcome change.
- pas 9y agoFor me epoch is more readily associated with new version new features, whereas edition is more like format, such as Mobile edition, Tablet edition, etc.