Currying and composition

Matt Soucy via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 27 14:07:25 PDT 2014


On 07/27/2014 04:59 PM, bearophile wrote:
> Matt Soucy:
> 
>>> Is it a good idea to also mix in the function composition operator overloading?
>>
>> I'm not so sure about that one - mainly because then it's possible with some functions (the curried ones) but not all (including "regular" and delegates).
> 
> If you compose (multiply) a "curried" with a regular or a regular with a "curried", you produce a "curried". Is this a problem and not enough?
> 
> Bye,
> bearophile
Try to compose a regular and a regular. If you expect them to all work the same, you're in for a surprise.

-- 
Matt Soucy
http://msoucy.me/


More information about the Digitalmars-d mailing list