Hacker News new | past | comments | ask | show | jobs | submit login

Well, I'm certainly no JS expert. I doubt I'm the guy to figure out what to do here, at this point.

In any case, are you sure that JS generators should be considered a "future" thing? I just did a bit of research, and it sounds like you are talking about this proposal:

http://wiki.ecmascript.org/doku.php?id=proposals:iterators_a...

According to the following page, much/all of that proposal was included in JS 1.7, which was implemented in Firefox 2.0.

https://developer.mozilla.org/en/New_in_javascript_1.7

And FF 2.0 was released in October 2006. A quick check shows that my FF installation (3.6.22) supports generator functions, and the "yield" keyword, just fine, as long as I say

  <script type="text/javascript;version=1.7">
Regardless, I'm a little out of my depth here.



Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: