>> let iterable = { *[iterator]() { yield 5; } };
>>
>> Presented without comment...
>
> I'm sorry, but I reject this kind of argument. That code is simply more
> concise than:
>
> let iterable = { [iterator]: function*() { yield 5 } };
Given that the concise notation means that ': function' is omitted, wouldn’t it
be better to write:
>> let iterable = { [iterator]*() { yield 5; } };
--
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