News for hackers. Stuff that matters.
Re:Rust 1.56.0 and Rust 2021 by emteycz on Thursday October 21, 2021 @11:51AM (#28946294)
ES(year) for JavaScript
Re:Rust 1.56.0 and Rust 2021 by nicoburns on Thursday October 21, 2021 @12:08PM (#28946578)
A 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.
Re:Rust 1.56.0 and Rust 2021 by Macha on Thursday October 21, 2021 @02:29PM (#28948932)
Yeah, and the "use" statements for this came from Perl which is probably the originator of this pattern here.
Re:Rust 1.56.0 and Rust 2021 by RussianCow on Thursday October 21, 2021 @01:30PM (#28947948)
Newer 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.