std.functional.curry isn't
Graham Fawcett
fawcett at uwindsor.ca
Fri Jun 25 06:39:28 PDT 2010
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
Best,
Graham
More information about the Digitalmars-d
mailing list