Re:ToffeeScript – CoffeeScript with async syntax and some ad...
by MichaelGG on Saturday October 26, 2013 @09:42AM
(#6617355)
Is this just like C#'s async, F#'s mon^H^H^H workflows aka computation expressions, Haskell's do notation?
[ Parent
| on HN ]
Re:ToffeeScript – CoffeeScript with async syntax and some ad...
by gregwebs on Saturday October 26, 2013 @10:00AM
(#6617404)
Not at all in the case of Haskell whose IO is automatically async. You write IO in a normal blocking style and your current thread will automatically be suspended and resumed.
You are just required to do it in the IO monad since the language is pure.