An implementation _could_ add a mode (*shudder*) along the same lines as strict 
mode:
"die in hell ASI, i hate you with the fiery passion of a thousand burning 
suns.";

And then make it a syntax error whenever ASI would occur.  I have considered 
this in JSC (albeit with a slightly shorter opt in string).

It wouldn't have the backwards compat problems you get by "disabling ASI" as 
the points where ASI being removed changes behaviour would be errors :D

--Oliver

On Apr 17, 2011, at 4:24 PM, Garrett Smith wrote:

> On 4/17/11, Allen Wirfs-Brock <[email protected]> wrote:
>> 
>> On Apr 17, 2011, at 12:33 PM, Mike Ratcliffe wrote:
>> 
>>> ...
>>> 
>>> Personally I would welcome some kind of option to disable ASI with open
>>> arms. Garrett's strict mode warning idea makes sense to me but I am fairly
>>> certain that not everybody would welcome it.
>>> ~
>> 
>> I'd suggest that this isn't really a standards issue.  The standard does not
>> prevent an implementation from  providing whatever sort of supplemental
>> diagnostic output it deems appropriate.  You could even issue warnings
>> recommending another programming language if you wanted.  It also doesn't
>> block an implementation from providing a user selected mode that excludes
>> certain standard features such as ASI, it just means that when operating in
>> that mode the implementation isn't conforming to the standard.
>> 
>> To be compatible with the standard and the web, an ECMAScript implementation
>> is still going to have to default to accepting code that depends upon ASI.
>> However, the implementation can gripe about it all it wants on a diagnostic
>> channel.
>> 
> Which major browser implementations discouraging developers from using
> ASI and how effective is it?
> 
> Implementations are motivated to get scripts working and conform to
> specs. How could Ecma encourage developers to stop using ASI? I
> initially thought that standard warnings in strict mode would help.
> -- 
> Garrett
> _______________________________________________
> es-discuss mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/es-discuss

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to