Re:Visual Basic, PHP, Rails. Is Node.js next?
by roryokane on Monday April 02, 2012 @12:20AM
(#3786301)
In fact, IcedCoffeeScript (http://maxtaco.github.com/coffee-script/) already implements this, using keywords called "await" and "defer".
I wouldn't be too sure about that. .net 4.5 is coming out with an await and async keywords which will basically signal to the compiler that method should be re-written to an asynchronous. So for the example you gave, if the await keyword was available in coffeescript, you could just write:
And the coffeescript compiler could then re-write callback style.