Firefox currently implements the `yield` keyword, but not the function*()
{} syntax. I think v8 should do the same for now.
I searched everywhere and I can't find any existing bugs or plans for the
`yield` keyword. This is a significant feature for javascript, one of the
few that introduces a new semantic that is very difficult to simulate
without native support.
This would have a big impact on node.js as well, allowing better style for
async code.
+1. While for some people this will be just a "nice to have", for complex
JS code and especially in node.js it would make all the difference in the
world. It will enable people to write coroutine-like code instead of crufty
and sometimes convoluted callback boilerplate.
+1. While for some people this will be just a "nice to have", for complex
JS code and especially in node.js it would make all the difference in the
world. It will enable people to write coroutine-like code instead of crufty
and sometimes convoluted callback boilerplate.
Edit: forgot to add - for example, something like task.js
http://taskjs.org/ + V8 would mean pure awesome (especially for node)
All I can say is ... what's the hold up? Firefox has had this for 5 years
now. You guys could at least make it conditionally compiled so that
node.js can use it. And while I'm dreaming maybe you could implement
the 'async' keyword? Of course that would mean having a task framework
like .Net, which would imply having a standard framework period.
I wish someone could at least explain why generators are not being
implemented in V8.
Please, for the love of all that is good, yes. Sooner than later.
-- You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
-- You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
-- You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
-- You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
-- You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
-- You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
Please make it an expression so one can conveniently pass a value to
generator, e.g.:
var x;
x = yield;
or
return yield MyAsyncFunction();
-- You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
The specs already has yield as an expression, so they should implement it
that way.
-- You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
-- You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings