Boost logo

Boost :

Subject: Re: [boost] [GSoC] [Boost.Hana] Formal review request
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2014-07-31 09:36:49


On 31/07/2014 10:27 a.m., Louis Dionne wrote:
> Bjorn Reese <breese <at> mail1.stofanet.dk> 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#tuple.apply

Regards,

-- 
Agustín K-ballo Bergé.-
http://talesofcpp.fusionfenix.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk