Interesting question!
I always found it weird, myself!
function () {
"use strict";
}
It might be a new token, perhaps?
function () {
use strict, safe;
}
This could allow us to even add some extra scoped-options, such as a safe
mode...I am pretty sure you guys would have even more options in mind,
either to constrain, or to liberate access or features!
An interesting example for that use, would be the way browsers are
implementing the use of es6 and the way you enable it in each browser!
We could use something like (for the future features, as well):
function () {
use strict, experimental; // allows the use of experimental features
}
function () {
use strict, unstable; // allows the use of features that are soon going
to be official
}
Cheers.
On Tue, Dec 16, 2014 at 11:08 AM, Axel Rauschmayer <[email protected]> wrote:
>
> Given 1JS – would strict mode have been done differently in hindsight? How?
>
> Thanks!
>
> Axel
>
> --
> Dr. Axel Rauschmayer
> [email protected]
> rauschma.de
>
>
>
>
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss
>
>
--
*Felipe N. Moura*
Senior Web Developer
Website: http://felipenmoura.org
Twitter: @felipenmoura <http://twitter.com/felipenmoura>
LinkedIn: http://goo.gl/qGmq
Meet some of my projects:
BrazilJS Conference <http://braziljs.com.br/> | BrazilJS Foundation
<http://braziljs.org> | Power Polygon
<http://github.com/braziljs/power-polygon> | TheWebMind
<http://thewebmind.org/> | PHPDevBar
<https://addons.mozilla.org/pt-BR/firefox/addon/php-developer-toolbar/>
---------------------------------
LinuxUser #508332
*Changing the world* is the least I expect from myself!
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss