The 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
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com
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
---
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.
Because they're missing the '*'?
Could you tell me why, for you, my yielded functions aren't generator functions, please?
That looks like the old firefox version of generators as well as firefox specific (from es4) destructuring & conditional catch clause.
My code is based on https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_in_JavaScript/1.7 examples...
Would they be so wrong?
Looks like Michaël has been working with generators in Firefox (he mentions JavaScript 1.7 somewhere).
Michaël, you should take a look at harmony generators. They will superseed the JS 1.7 generators in Firefox. It's the same concept but the syntax has evolved a little bit. For example yield is only allowed inside generator functions declared with function*. You can play with them with node 0.11.5.
Also, some projects you can look at:
https://github.com/jmar777/suspend
https://github.com/spion/genny
https://github.com/bjouhier/galaxy (mine - there is a browser example that works in Chrome Canary)
On Thu, Aug 15, 2013 at 5:45 AM, Bruno Jouhier <bjou...@gmail.com> wrote:
Looks like Michaël has been working with generators in Firefox (he mentions JavaScript 1.7 somewhere).
Michaël, you should take a look at harmony generators. They will superseed the JS 1.7 generators in Firefox. It's the same concept but the syntax has evolved a little bit. For example yield is only allowed inside generator functions declared with function*. You can play with them with node 0.11.5.
Also, some projects you can look at:
https://github.com/jmar777/suspend
https://github.com/spion/genny
https://github.com/bjouhier/galaxy (mine - there is a browser example that works in Chrome Canary)Maybe I'm just grouchy this morning, but is there any reason why you're just repeating everything that Jake and I have already posted?
On Thursday, August 15, 2013 2:16:02 PM UTC+2, Rick Waldron wrote:On Thu, Aug 15, 2013 at 5:45 AM, Bruno Jouhier <bjou...@gmail.com> wrote:
Looks like Michaël has been working with generators in Firefox (he mentions JavaScript 1.7 somewhere).
Michaël, you should take a look at harmony generators. They will superseed the JS 1.7 generators in Firefox. It's the same concept but the syntax has evolved a little bit. For example yield is only allowed inside generator functions declared with function*. You can play with them with node 0.11.5.
Also, some projects you can look at:
https://github.com/jmar777/suspend
https://github.com/spion/genny
https://github.com/bjouhier/galaxy (mine - there is a browser example that works in Chrome Canary)Maybe I'm just grouchy this morning, but is there any reason why you're just repeating everything that Jake and I have already posted?
Answer is simple: I did not scroll far enough down and did not see that there were more messages in the thread (or the page wasn't up-to-date - I don't know). But I saw them just after posting and felt a bit silly.
The parent generator yld() & error are unavailable, from the child generator. Each generator treats them itself.
Version 1.1.1
this.error becomes this.throw(), conforming with the ES6 generators
--
--
At the top of that page it says
> This proposal has progressed to the Draft ECMAScript 6 Specification, which is available for review here: specification_drafts.
> The content on this page is for historic record only and may no longer reflect the current state of the feature described within.If you look at the draft spec ( http://people.mozilla.org/~jorendorff/es6-draft.html#sec-15.19.4.1 ) it says there are two methods, next & throwRick: That notice of "this page is 100% out of date and should not be used at reference material" really should be a lot more obvious. Maybe something like give the bolded message a title "Warning:" with a warning icon
On Sun, Aug 18, 2013 at 6:15 PM, Michaël Rouges <michael...@gmail.com> wrote:
Hi Rick,
Thank you for looking at my code, however, the spec says otherwise.
http://wiki.ecmascript.org/doku.php?id=harmony:generators
--
--
--
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 nod...@googlegroups.com
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
---
You received this message because you are subscribed to a topic in the Google Groups "nodejs" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nodejs/f27jl6NxCzg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nodejs+un...@googlegroups.com.
Adding a way to set a delay before the generator.next() or generator.nextCb() callIn order to avoid recursion problems, the asynchronous execution privileges setImmediate(), then setTimeout()... depending to the available methods.