"no strict"; directive

Andrea Giammarchi andrea.giammarchi at gmail.com
Fri Nov 16 12:33:38 PST 2012


AFAIK YUI Compressor does too


On Fri, Nov 16, 2012 at 12:21 PM, Rick Waldron <waldron.rick at gmail.com>wrote:

>
>
>
> On Thu, Nov 15, 2012 at 8:02 PM, Andrea Giammarchi <
> andrea.giammarchi at gmail.com> wrote:
>
>> "use strict" is removed from code by default ... this is where it goes
>> once minified: nowhere.
>>
>> I would rather force a minifier explicitly to remove it rather than force
>> it to keep it for ES5 ... also ES5 is not use strict so I don't get this
>> Closure Compiler choice.
>>
>
> Is it just Closure Compiler or are there others you know of? Uglify.js
> doesn't remove "use strict".
>
> Rick
>
>
>> I don't see minified code with "use strict" that often
>>
>>
>> On Thu, Nov 15, 2012 at 4:40 PM, Brendan Eich <brendan at mozilla.com>wrote:
>>
>>> Andrea Giammarchi wrote:
>>>
>>>> Said that, I would rather force removal of "use strict" 'cause if there
>>>> is explicit desire from the developer. Isn't it?
>>>>
>>>
>>> What do you mean? "use strict" is not going away. It is used by some
>>> developers. I had a show of hands at JSConf.au, definitely a minority but
>>> significant.
>>>
>>> You are barking up the wrong tree. And Angus's abuses of 'with' are
>>> unjustified. Yes, "be water". Yes, masters may break rules students must
>>> follow. None of that philosophizing justifies 'with' abusage or
>>> repealing/undoing "use strict".
>>>
>>> /be
>>>
>>
>>
>> _______________________________________________
>> 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/20121116/449688c3/attachment.html>


More information about the es-discuss mailing list