From: Jim Weirich Date: 2005-02-10T16:25:42+09:00 Subject: Re: Building a Better Functor On Thursday 10 February 2005 12:37 am, John W. Long wrote: > def __add__(f) I'm almost certain you meant to say: def +(f) > This is a seriously cool concept. I'd like to see a version of this > included in the standard lib. Perhaps even added to the core by modifying > proc to behave the same manner (see Nowake's proposal[1]). Does anyone else > have a better implementation? Can you see ways of improving my own? It looks a bit like FlexMock (http://onestepback.org/software/flexmock/). -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)