excluding features from sloppy mode

Russell Leggett russell.leggett at gmail.com
Thu Dec 27 22:50:45 PST 2012


On Dec 27, 2012, at 8:54 AM, Kevin Smith <khs4473 at gmail.com> wrote:

> 
>>> Since any new code will likely be written as a module (even in the near-term, transpiled back to ES5), this would be the ideal scenario.
>> 
>> Which "this" do you mean? modules (in or out of line) implying strict mode can target ES5 strict, no problem.
> 
> "This" meaning all module code (in or out-of-line) is implicitly strict.  If that's the case, then implicit rules for anything else essentially becomes moot:  module code will dominate by far.  Even in the near term, many developers will start writing in ES6 modules, and transpiling back to ES5.  If all modules are strict, then the transpiler will insert the required "use strict" directive, and all is good.
> 
> To put another spin on it, how often will we see a class that is outside of *any* module?
What about node code?

- Russ
> 
> { Kevin }
> 
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121228/dd92eec9/attachment-0001.html>


More information about the es-discuss mailing list