std.functional.curry isn't

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Jun 24 18:19:47 PDT 2010


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


More information about the Digitalmars-d mailing list