Why doesn't curry work with multiple arguments?
bearophile
bearophileHUGS at lycos.com
Wed Apr 6 14:43:25 PDT 2011
Andrej Mitrovic:
> Here's a basic implementation:
I have some general comments:
- Currying and partial function application are not exactly the same thing. So I am not sure the "curry" in std.functional is named correctly;
- Partial application is important in a language that wants to support functional idioms a little. This means that if D doesn't currently supports Partial application well, then it's worth improving;
- A good function application must be able to solve this little rosettacode task too:
http://rosettacode.org/wiki/Partial_function_application
Bye,
bearophile
More information about the Digitalmars-d-learn
mailing list