Allen.Wirfs-Brock at microsoft.com
Thu May 21 12:21:25 PDT 2009
Yes, but "use strict" (two spaces) is a far more likely scenario than any contrived set of alternating and possibly broken comments used within an intended use strict directive.
Give me an exact specification of what you want to recognize and we can put it into the spec. if we can get consensus on it.
>From: John Cowan [mailto:cowan at ccil.org]
>Sent: Thursday, May 21, 2009 12:09 PM
>To: Allen Wirfs-Brock
>Cc: David-Sarah Hopwood; es5-discuss at mozilla.org
>Subject: Re: Grammar corrections
>Allen Wirfs-Brock scripsit:
>> By "use strict" I assume you mean exactly one U+0020 after the "e".
>> Is so, it seems like this creates an even a greater hazard for a user
>> typo resulting in a use strict directive not being recognized. All it
>> takes is an extra space before use or between the words and it would
>> just be a string literal and not a use strict directive.
>This complaint is scalable to any conceivable strategy. For example, as
>specified, "/*this*/ use/*s*/ strict/* semantic rules*/" is a
>directive, whereas "/*this*/ use/*s* strict/* semantic rules*/" is
>John Cowan http://ccil.org/~cowan cowan at ccil.org
>Lope de Vega: "It wonders me I can speak at all. Some caitiff rogue did
>rudely yerk me on the knob, wherefrom my wits still wander."
>An Englishman: "Ay, a filchman to the nab betimes 'll leave a man
>crank for a spell." --Harry Turtledove, Ruled Britannia
More information about the es5-discuss