On Wed, Aug 14, 2013 at 8:35 PM, Michaël Rouges <[email protected]>wrote:
> Could you tell me why, for you, my yielded functions aren't generator
> functions, please?
>
Because they're not.
A Generator function looks like this:
function * generator() {
yield 1;
}
Note the asterisk between "function" and "generator".
Rick
>
>
> Le jeudi 15 août 2013 00:31:18 UTC+2, Rick Waldron a écrit :
>>
>> It's unwise to encourage the use of `yield` in non-generator function
>> bodies... "yield" is strict-mode reserved and will throw a SyntaxError
>> exception in ES6 engines. This appears in many places throughout the readme
>> file.
>>
>>
>> Rick
>>
>>
>>
>>
>>
>>
>>
>>
>> On Wed, Aug 14, 2013 at 3:38 PM, Michaël Rouges <[email protected]>wrote:
>>
>>> The wiki :
>>> https://github.com/Lcfvs/yld/**wiki<https://github.com/Lcfvs/yld/wiki>
>>>
>>> I apologize if my English isn't very correct, I receive with pleasure your
>>> comments.
>>>
>>> --
>>> --
>>> Job Board: http://jobs.nodejs.org/
>>> Posting guidelines: https://github.com/joyent/**node/wiki/Mailing-List-*
>>> *Posting-Guidelines<https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines>
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To post to this group, send email to [email protected]
>>>
>>> To unsubscribe from this group, send email to
>>> nodejs+un...@**googlegroups.com
>>>
>>> For more options, visit this group at
>>> http://groups.google.com/**group/nodejs?hl=en?hl=en<http://groups.google.com/group/nodejs?hl=en?hl=en>
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "nodejs" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to nodejs+un...@**googlegroups.com.
>>>
>>> For more options, visit
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>
>> --
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.