Re:ES6: The features I'm most excited about
by thwarted on Sunday July 05, 2015 @11:42PM
(#9836623)
Why can all this new syntax be added, but the "use strict" pragma is still specified by a string? It made sense to send messages to the interpreter in a backwards compatible way, but now it just seems odd.
[ Parent
| on HN ]
All code in modules is in the context of "use strict" by default so it won't be necessary to use this pragma explicitly.
Re:ES6: The features I'm most excited about
by nodesocket on Sunday July 05, 2015 @11:51PM
(#9836645)
Not entirely sure if browsers require "use strict;", but io.js (node) does.
Re:ES6: The features I'm most excited about
by silverwind on Monday July 06, 2015 @05:42AM
(#9837870)
In iojs/node, you can force v8 strict mode through the --use_strict flag, saving you from writing in every file.