excluding features from sloppy mode

Brandon Benvie brandon at brandonbenvie.com
Sun Dec 30 08:28:43 PST 2012


 On Sunday, December 30, 2012, Mark S. Miller wrote:
>
> In the short term, while people are making the transition, the rule
> would be stated as above “If you want the new stuff, turn on strict
> mode or wrap a module around it.” Later, once ES6 is everywhere, it
> would instead be stated as "Turn on strict mode or code in a module in
> order to code in JavaScript. If you don't, you'll be coding instead in
> an insane JavaScript fossil that exists merely for compatibility with
> old ES3 code. No one even understands its scoping rules."
>

This is a very attractive idea. It seems like it is is the simplest of all
possible stories to learn, teach, use, specify, and implement.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20121230/33a3f824/attachment.html>


More information about the es-discuss mailing list