in reply to Re: Near-free function currying in Perl
in thread Near-free function currying in Perl
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.template => "${_}_c"
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Near-free function currying in Perl
by dragonchild (Archbishop) on Nov 17, 2004 at 15:19 UTC | |
by tmoertel (Chaplain) on Nov 17, 2004 at 17:23 UTC | |
by stvn (Monsignor) on Nov 17, 2004 at 18:14 UTC | |
by tmoertel (Chaplain) on Nov 17, 2004 at 22:20 UTC | |
by stvn (Monsignor) on Nov 17, 2004 at 22:57 UTC | |
| |
by stvn (Monsignor) on Nov 17, 2004 at 15:45 UTC | |
by dragonchild (Archbishop) on Nov 17, 2004 at 16:20 UTC | |
by stvn (Monsignor) on Nov 17, 2004 at 16:40 UTC | |
by dragonchild (Archbishop) on Nov 17, 2004 at 17:01 UTC |