MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/6e9hix/node_800_released/di9key2/?context=3
r/javascript • u/jcready __proto__ • May 30 '17
56 comments sorted by
View all comments
Show parent comments
23
It's almost available in browsers, so it's always better to keep things the same way both in browser and in node. And since it's native way in Javascript, it should be used instead of requires.
0 u/[deleted] May 31 '17 [deleted] 5 u/[deleted] May 31 '17 CJS is non-standard JavaScript. The import/export syntax is the standard being adopted in browsers and should be adopted in Node as well.If we're not getting Node to at least adhere to JavaScript standards then what's the point? 0 u/thepeka May 31 '17 This idea is so painfully out of touch with reality. 1 u/FormerGameDev Jun 02 '17 I'd vote for a separate branch that ditches CJS and just uses ES6. I'd use it, at least in some things.
0
[deleted]
5 u/[deleted] May 31 '17 CJS is non-standard JavaScript. The import/export syntax is the standard being adopted in browsers and should be adopted in Node as well.If we're not getting Node to at least adhere to JavaScript standards then what's the point? 0 u/thepeka May 31 '17 This idea is so painfully out of touch with reality. 1 u/FormerGameDev Jun 02 '17 I'd vote for a separate branch that ditches CJS and just uses ES6. I'd use it, at least in some things.
5
CJS is non-standard JavaScript. The import/export syntax is the standard being adopted in browsers and should be adopted in Node as well.
import/export
If we're not getting Node to at least adhere to JavaScript standards then what's the point?
0 u/thepeka May 31 '17 This idea is so painfully out of touch with reality. 1 u/FormerGameDev Jun 02 '17 I'd vote for a separate branch that ditches CJS and just uses ES6. I'd use it, at least in some things.
This idea is so painfully out of touch with reality.
1 u/FormerGameDev Jun 02 '17 I'd vote for a separate branch that ditches CJS and just uses ES6. I'd use it, at least in some things.
1
I'd vote for a separate branch that ditches CJS and just uses ES6. I'd use it, at least in some things.
23
u/norlin May 30 '17
It's almost available in browsers, so it's always better to keep things the same way both in browser and in node. And since it's native way in Javascript, it should be used instead of requires.