Refutable pattern
Axel Rauschmayer
axel at rauschma.de
Fri Feb 1 01:56:45 PST 2013
Beautiful.
What do question marks in value (as opposed to key) positions mean?
Example: { a: x? }
How does this work grammatically (ternary operator…)?
On Feb 1, 2013, at 5:28 , Andreas Rossberg <rossberg at google.com> wrote:
> I wrote up the semantics of refutable destructuring as discussed in
> yesterday's meeting:
>
> http://wiki.ecmascript.org/doku.php?id=harmony:refutable_matching
>
> In particular, this defines the meaning of the ?-operator in a fairly
> straightforward manner.
>
> The page also describes how the proposed matching semantics would
> readily be applicable to a pattern matching switch, and how it would
> potentially allow us to turn 'undefined' into a keyword.
>
> /Andreas
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
--
Dr. Axel Rauschmayer
axel at rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20130201/41db2b78/attachment-0001.html>
More information about the es-discuss
mailing list