std.functional.curry isn't

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Jun 25 07:36:32 PDT 2010


On 06/25/2010 08:39 AM, Graham Fawcett wrote:
> On Thu, 24 Jun 2010 20:19:47 -0500, Andrei Alexandrescu wrote:
>
>> On 06/24/2010 07:06 PM, Graham Fawcett wrote:
>>> Hi folks,
>>>
>>> The template "std.functional.curry(alias fun, alias arg)" claims to
>>> "curry fun by tying its first argument to a particular value."
>>>
>>> That is not currying; it is partial application.
>>
>> [...]
>>
>>> Confusing curring and partial application is a very common mistake. But
>>> please rename this template in std.functional. It makes the
>>> std.functional module look amateurish to have such an error.
>>
>> Hm, fine. The whole curry thing was an experiment that I put on hold
>> because back then I couldn't support functions with any number of
>> arguments, which puts a damp on enthusiasm.
>>
>> I suggest you to send a patch to bugzilla in case you have the time.
>>
>>
>> Andrei
>
> Thank you.
>
> http://d.puremagic.com/issues/show_bug.cgi?id=4391

Great. I'm hoping for a patch that fixes the problem, but it's good to 
have the report we don't forget this.

Andrei


More information about the Digitalmars-d mailing list