Felipe Nascimento de Moura (2014-12-18T13:19:20.000Z)
d at domenic.me (2015-01-05T20:38:04.739Z)
Wouldn't it be interesting to have a "scope" variable? as is arguments... Something like ```js function(){ window.scope.set('strict', true); } ``` of ```js function(){ scope.set({ "strict": true, "experimental": true, "safe": false }); // then, other functions could turn on/off some of it someEl.addEventListener('click', function(){ scope.set('safe', true); ... // or even if( scope.get('experimental') ){ // doSomethingNew(); } }); } ``` This is just a "raw" suggestion, and personally, I think it should NOT be possible to turn off an "strict" or "safe" definition, even when it comes from a parenting scope. But this way, it would be "polyfillable", future-friendly, for new stuff and new versions of ES, and browser support, and maybe the new scope feature might bring some other benefits, such as a native "supports" for new feature, or a new way to support sandboxed scopes. I wonder if something like this couldn't be used to define a scope as a "worker", to run in a new process thread(sandboxed, in this case). Let me know what you think, or if you haven't already discussed something similar.