more useful options | |
PerlMonks |
Re^2: Near-free function currying in Perlby tmoertel (Chaplain) |
on Nov 17, 2004 at 14:21 UTC ( [id://408411]=note: print w/replies, xml ) | Need Help?? |
First, thanks for reading the meditation and providing feedback.
Second, I like your idea of being able to provide a prefix and suffix. I think that I'll probably let users provide a template. Maybe: Nevertheless, in the docs I will try to discourage using anything but the default. While you are no doubt correct that using a more explicit prefix/suffix may reduce the cost of maintenance locally for some settings, not having a common usage across the community may increase cost globally. For what it's worth, in programming languages with support for real currying, there is no notation whatsoever for currying – curried calls and regular calls are look the same (because underneath they are the same) – and it's not confusing once you get the hang of it. (In fact, it's liberating.) Thanks, again! Tom Moertel : Blog / Talks / CPAN / LectroTest / PXSL / Coffee / Movie Rating Decoder
In Section
Meditations
|
|