All, I have discovered iced-coffee-script today and was very happy to see that someone tried designing a more readable coffee-script dialect for async programming.
I can't get iced to work though with comprehensions like the map and reduce functions, or the more simply do/for. E.g. the output of...
square = (x, callback) ->
setTimeout ->
callback x * x
, 5000
console.log [ 1..10 ].map (x) ->
await square x, defer y
y
... is simply an array of undefineds! What am I missing? Thank you in advance.
Giacecco