var x = 1 not creating a global is a MASSIVE diff with scripts. Breaks every script I wrote in 2007.
-
-
No, but auto strict and lack of early return certainly can be
1 reply 0 retweets 0 likes -
-
Saying ESM and CJS differ in ways that are problematic
1 reply 0 retweets 0 likes -
Replying to @bradleymeck @satya164
Right, but CJS and script do as well. The .js extension has always been broad. Never implied semantics just "some kind of JS"
2 replies 0 retweets 0 likes -
The reason node wants .mjs is not a new problem about diff semantics and the meaning of .js. It's about solving a problem Node has.
3 replies 1 retweet 2 likes -
What about other places like flow which is in OCaml having improper guessing of mode?
1 reply 0 retweets 0 likes -
Or pretty much anything that runs from a CLI
1 reply 0 retweets 0 likes -
Replying to @bradleymeck @satya164
1: People can opt in to modules in package.json if they're using TS or Flow. I'm also fine with "use modules" as an escape valve for
2 replies 0 retweets 0 likes -
Defense of .js is well thought out, but was not chosen over Unambiguous nor .mjs
1 reply 0 retweets 0 likes
"it was not chosen" != "It was not better". Just means the powers that be didn't choose it.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.