3 ms·
This is where I'm at. There is no need to read every new release notes and change your code every 6 weeks to use all the new features. It's a self-imposed menta
by dralley 7y ago
This is where I'm at. There is no need to read every new release notes and change your code every 6 weeks to use all the new features. It's a self-imposed mental overhead, not one which the language forces you to deal with.
There's nothing wrong with simply reading the "edition guide" every couple of years and using the automated tooling to perform 90% of the minor adjustments that you otherwise would have had to perform manually.
"cargo fix --edition-idioms" will perform many such adjustments for you.
https://doc.rust-lang.org/edition-guide/editions/transitioning-an-existing-project-to-a-new-edition.html#writing-idiomatic-code-in-a-new-edition https://doc.rust-lang.org/edition-guide/editions/transitioni...
- wyldfire 7y agoWow, that's a super cool feature. Didn't know it existed.