Is JSON not a subset of JS?
Right, but CJS and script do as well. The .js extension has always been broad. Never implied semantics just "some kind of JS"
-
-
JS envs only loaded one kind of JS before ESM.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
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.
-
What about other places like flow which is in OCaml having improper guessing of mode?
-
Or pretty much anything that runs from a CLI
-
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
-
Defense of .js is well thought out, but was not chosen over Unambiguous nor .mjs
-
"it was not chosen" != "It was not better". Just means the powers that be didn't choose it.
End of conversation
New conversation -
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.