News for hackers. Stuff that matters.
Re:Cancelable Promises: Why was this proposal withdrawn? by bad_user on Monday December 19, 2016 @09:22AM (#13211525)
> Monads: there was a very vocal faction on TC-39 that really wanted a Promises to be monadic and very much emphasized mathematical purity over usefulness and any attempt to discuss things tended to get side tracked into a discussion about monads, see brouhaha over Promise.cast

Monads are about usefulness, because a type being monadic means there is a bind/flatMap operation you can rely on to have a set of laws. So a Promise being Monadic means that it is lawful and more composable. And it is especially relevant in the context of a Future/Promise. Aren't you tired of Javascript Future/Promise implementations that are broken?

Like, please learn about the concept.

Re:Cancelable Promises: Why was this proposal withdrawn? by kaishiro on Monday December 19, 2016 @09:34AM (#13211594)
This is one of the most ironic comments I've ever read on HN, right down to your final knife twist.
Re:Cancelable Promises: Why was this proposal withdrawn? by depr on Monday December 19, 2016 @09:48PM (#13217017)
I don't get the value of composability and refuse to learn, and "monad" and "laws" sound like math which I don't want to understand. So instead of attempting to comprehend what this is about I'm just going to make fun of you in a comment.
Re:Cancelable Promises: Why was this proposal withdrawn? by throwanem on Tuesday December 20, 2016 @06:07PM (#13225179)
I don't see a lot of point in making better programming concepts seem accessible, and "try to meet people where they are" sounds like populism which I don't want to understand. So instead of attempting to argue that there's value in the idea in a way that doesn't put people off with an implicit accusation of lazy ignorance, I'm just going to go with the implicit accusation of lazy ignorance.
Re:Cancelable Promises: Why was this proposal withdrawn? by throwanem on Monday December 19, 2016 @12:02PM (#13212832)
Like, yeah! It's just a monoid in the category of endofunctors. What's the problem?
Re:Cancelable Promises: Why was this proposal withdrawn? by jackmott on Monday December 19, 2016 @09:25AM (#13211540)
annnd there we go