by wrong_variable · 10y ago · 0 comments
In liveScript
do
error,output <- fs.readFile "helloWorld.txt"
console.log output.toString() # => "hello world from txt file"
you can combine that with co-routines to create really powerful abstractions, without the massive memory footprint of promises.i.e. use a different language because callbacks in javascript suck ? I prefer promises thank you. And promises ARE monads. No need for liveScript.