>> Currently, there one can override the built-in operators via elementGet
>> (getting via []), elementSet (setting via []) and elementDelete (`delete`
>> operator). Wouldn’t it make sense to also provide elementIn (`in` operator)?
>
> Probably. It may depend upon how strongly you feel about obsoleting for-in
> in favor of for-of.
That would be some kind of iteration protocol(?) I’d be perfectly happy with
not supporting for-in at all.
I was thinking about the relational operator `in`:
if (key in myMap) {
...
}
if (element in mySet) {
...
}
--
Dr. Axel Rauschmayer
[email protected]
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss