please add orEqual operator
isiahmeadows at gmail.com
Tue Aug 11 00:55:38 UTC 2015
On Mon, Aug 10, 2015, 20:41 Brendan Eich <brendan at mozilla.org> wrote:
> Oops, sorry.
> You were punning with pattern-matching there ;-).
> Can this thread die?
> Tab Atkins Jr. wrote:
> > On Mon, Aug 10, 2015 at 1:53 PM, Brendan Eich<brendan at mozilla.org>
> >> Please search for older proposals on ecmascript.org. You'd find
> >> http://wiki.ecmascript.org/doku.php?id=strawman:default_operator
> >> ES6 parameter default values took a look of wind out of this one's
> > You're pattern-matching incorrectly - this is not the default
> > operator, it's "seeing if a var is any of several possible matches".
> > But yeah, as Alexander said, Python gets by just fine by creating an
> > array or tuple and asking about membership; using .contains() should
> > be just fine in JS too.
> > ~TJ
> es-discuss mailing list
> es-discuss at mozilla.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss