Refutable pattern

Andreas Rossberg rossberg at google.com
Thu Jan 31 20:28:06 PST 2013


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


More information about the es-discuss mailing list