Nicolas Chauvat wrote:
> 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

We already have such stuff in kaa.base

>>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 :)

I know lisp and like it. So I also like lambda, map and friends. OK,
they don't belong into an oo language, but they are nice to have.



Dischi

-- 
"We're back to the times when men were men and wrote their own device 
 drivers"
     -- Linus Torvalds

Attachment: pgpApcEGIVUI4.pgp
Description: PGP signature

Reply via email to