News for hackers. Stuff that matters.
Re:Why I love Go by acjohnson55 on Tuesday December 05, 2017 @06:58PM (#15857360)
Yep. For my money, the war is over, and the monad won. I shouldn't say the m-word, as it turns people off. But that's the unifying pattern.

Javascript messed it up a little bit with promises, because it's so easy to swallow errors. IMO, they should have made it so that unhandled promise rejections throw by default at the next turn of the event loop, with a method that could be called to opt out individual promises.

Re:Why I love Go by girvo on Tuesday December 05, 2017 @08:58PM (#15857902)
They have, sort-of!

At least, V8 did IIRC. I use Creed[0] myself, which using it's `shim()` function gives you the same behaviour. It's quite lovely.

[0] http://blog.briancavalier.com/creed/