On 31/07/2014 10:27 a.m., Louis Dionne wrote:
Bjorn Reese
writes: On 07/30/2014 11:53 PM, Louis Dionne wrote:
I agree that `bind` isn't a good choice. I'll think of something, but `apply` and `compute` are out of question because Monads are not computations; that's just one metaphor.
I do not associate 'apply' with computation. The documentation of hana::bind states that it "Appl[ies] a function returning a monad to the value(s) inside a monad", so 'apply' does not seem like such a bad name.
`apply` is already used for the same purpose as in the MPL:
apply(f, args...) == f(args...)
`apply` is also the name chosen by the Library Fundamentals TS for calling a function with a tuple of arguments: https://rawgit.com/cplusplus/fundamentals-ts/n4023/fundamentals-ts.html#tupl... Regards, -- Agustín K-ballo Bergé.- http://talesofcpp.fusionfenix.com