3 ms·
Well, AFAIK rust versions are not backward compatible, while C and C++ standars for the most part are.
by gpderetta 5y ago
Well, AFAIK rust versions are not backward compatible, while C and C++ standars for the most part are.
- zanellato19 5y agoThey are, that's the whole point
- steveklabnik 5y agoThere is small breakage in new versions of both C and C++’s standards. It is generally very small though.
- dathinab 5y agoHappens in rust, too. Mainly to fix soundness holes in the language. Like there was some problem with match statements, guards, moving values and potential (I think?) user after free or so. Which required match guards to be slightly constrained in some edge cases.
- dathinab 5y agoYou might confuse rust version with rust editions. Version: 1.0.0,.., 1.50.0, 1.51.0, ... Edition: 2015, 2018, .. Versions are the compiler version you use. Editions are more like a language dialect, and all newer compilers support all "older" editions. What versions change tend to be: - config defaults, e.g. make some warnings errors, change the default dep. resolver, etc. - syntax (in minor ways). E.g. add a new keyword for a new feature/syntax or remove a reversed but unused keyword where it's no clear that it's not needed. - improvements the the borrow checker or import system which in some edge cases could break existing code. Anyway any rust version supports all editions released up to the point in time and you can freely mix and match them between dependencies.
- gpderetta 5y agosorry, yes, I meant edition, as per parent post.