Promise.cast and Promise.resolve
quildreen at gmail.com
Tue Jan 28 19:39:12 PST 2014
On 29 January 2014 01:27, Sam Tobin-Hochstadt <samth at cs.indiana.edu> wrote:
> On Tue, Jan 28, 2014 at 7:47 PM, Brendan Eich <brendan at mozilla.com> wrote:
> > Andreas Rossberg wrote:
> >> Seriously, Haskell calls it>>=.
> > Right, that thing. Did it have the f-l-a-t-... name in Haskell, or is it
> > pronounced b-i-n-d always, monads or not?
> No, it's always called "bind" in Haskell. The name flatMap was
> invented for Scala, to the best of my knowledge.
I suppose using names that don't give you a hint of the meaning of the
operation fits perfectly Haskell's (and Scalaz's) "Avoid Success At All
Costs" tradition 😉
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the es-discuss