On Thu, Apr 13, 2017 at 11:08 AM, Bruno Jouhier <[email protected]> wrote:
> I like the idea of a block level annotation. Lighter and more practical > than a new set of operators. Module level would be nice too. OTOH > expression level feels a bit like overkill. > > Why not turn this into a more general _pragma_ syntax then? We already have a pragma syntax. So how about "use coercions, not!"; Just kidding about the actual text, but this "use x"; pragma pattern was meant to be usable for more than just "use strict";. This pragma syntax was designed to be ignored on versions of the language that do not yet recognize the pragma. Such version compat seems appropriate for the issue we're discussing. > This would allow us to control other special conditions: throw on > overflow, on divide by zero, etc. > > > > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss > -- Cheers, --MarkM
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

