function.next meta-property proposal

Alexander Jones alex at weej.com
Thu May 14 22:25:36 UTC 2015


I don't think that's a good enough reason by itself to make this
observable. You can pass arbitrary numbers of arguments to any function in
JS, and they are generally ignored.

On Thursday, 14 May 2015, Kevin Smith <zenparsing at gmail.com> wrote:

> Alexander, ES6 generators accept any arbitrary values for the first
> invocation of "next".  That's not going to change.
>
> On Thu, May 14, 2015 at 3:49 PM Alexander Jones <alex at weej.com
> <javascript:_e(%7B%7D,'cvml','alex at weej.com');>> wrote:
>
>> In Python, sending a value other than `None` into the first invocation of
>> `send` raises an error. That seems like a reasonable behaviour to me,
>> without introducing too much weirdness.
>>
>>     TypeError: can't send non-None value to a just-started generator
>>
>> On Thursday, May 14, 2015, Allen Wirfs-Brock <allen at wirfs-brock.com
>> <javascript:_e(%7B%7D,'cvml','allen at wirfs-brock.com');>> wrote:
>>
>>> At the March TC39 meeting we agreed that the `function.next` metapropty
>>> should be made into a standalone stage 1 proposal.
>>>
>>> That proposal is now available at:
>>> https://github.com/allenwb/ESideas/blob/master/Generator%20metaproperty.md
>>>
>>>
>>> Allen
>>>
>> _______________________________________________
>> es-discuss mailing list
>> es-discuss at mozilla.org
>> <javascript:_e(%7B%7D,'cvml','es-discuss at mozilla.org');>
>> https://mail.mozilla.org/listinfo/es-discuss
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20150514/efcfb10a/attachment.html>


More information about the es-discuss mailing list