News for hackers. Stuff that matters.
Re:Composability: From Callbacks to Categories in ES6 by cutler on Sunday July 10, 2016 @06:06AM (#12065125)
This killed it for me:

class Callback

.....

this.then = g => new Callback(callback =>

Can't we just keep OOP out of FP?

Re:Composability: From Callbacks to Categories in ES6 by homami on Sunday July 10, 2016 @06:40AM (#12065178)
Using class enables us to chain instances naturally in JS syntax, especially because JS lacks infix functions or custom operators. o1.then(f).then(g).run(cb)
Re:Composability: From Callbacks to Categories in ES6 by BinaryIdiot on Sunday July 10, 2016 @09:37AM (#12065516)
You can avoid the class syntax here and write a function to return the same if you prefer.