4 ms·
ES(year) for JavaScript
by emteycz 5y ago
ES(year) for JavaScript
- RussianCow 5y agoNewer versions of JavaScript do not break compatibility with older versions, whereas different editions of Rust break compatibility in various ways while still allowing interoperability between libraries written in different editions. That makes the two approaches very different.
- nicoburns 5y agoA better JavaScript example would be strict mode, which is opt-in with "use strict" and changes quite a bit of the semantics of the code while being completely interoperable with non-strict JS code.
- Macha 5y agoYeah, and the "use" statements for this came from Perl which is probably the originator of this pattern here.