Jason Tackaberry wrote:
exit_error = Callback(sys.exit, 1)
Now if we call exit_error(), sys.exit(1) gets called. Or, if we call
exit_error(foo), that expands to sys.exit(1, foo).
No sure this is the right place where to discuss this, but the above
sounds a lot like function currying which one usually finds in
functionnal languages. http://en.wikipedia.org/wiki/Currying
There are recipes on ActiveState:
http://aspn.activestate.com/ASPN/search?query=currying&x=17&y=4&type=Recipes
I do agree that lambda is a bit of a
bastardization, because it only allows basic expressions, and I think
this is really the main beef people seem to have with lambda: if you
can't do it properly, don't do it at all.
I can relate to that :)
--
Nicolas
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Freevo-devel mailing list
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel