Strict (non-coercing) expressions
Mark S. Miller
erights at google.com
Thu Apr 13 16:20:23 UTC 2017
On Thu, Apr 13, 2017 at 11:08 AM, Bruno Jouhier <bjouhier at gmail.com> 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
> This would allow us to control other special conditions: throw on
> overflow, on divide by zero, etc.
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss