|
|
| Think about Loose Coupling | |
| PerlMonks |
Re^2: Why Perl Is Not My Favourite Functional Programming Languageby FoxtrotUniform (Prior) |
| on Nov 06, 2004 at 02:50 UTC ( #405684=note: print w/ replies, xml ) | Need Help?? |
|
Have you tried prototypes? Briefly. I don't fully grok the try/catch example in perldoc perlsub, so I may be missing something, but my failed attempts look like: which of course does not compile. (There's also the issue that in order to really do higher-order functions with prototypes, I'd need to somehow examine fn's prototype and preserve it in the returned sub.) I'm thinking that a source filter might help, turning builtins used as values into anonymous subs, but I don't know very much about source filters — I'm not even sure that they do what I think they do. --
In Section
Meditations
|
|
||||||||||||||||||||||||