At 06:51 PM 3/26/2001 -0500, John Porter wrote: >Dan Sugalski wrote: > > > > You're ignoring side-effects. The tied data may well be returned the same > > every time it's accessed, but that doesn't mean that things aren't > > happening behind the scenes. > >Like the :constant attribute on object methods in certain other languages. > >So, we could say, if :constant not on the sub, don't cache. > >As for :idempotent, I think sort() needs to assume the comparison sub >is idempotent, rather than requiring such an attribute explicitly. Assuming idempotency's fine, though I don't know that I'd go so far as to require it. I certainly wouldn't complain, though. Dan --------------------------------------"it's like this"------------------- Dan Sugalski even samurai [EMAIL PROTECTED] have teddy bears and even teddy bears get drunk
- Re: Schwartzian Transform Uri Guttman
- Re: Schwartzian Transform Russ Allbery
- Re: Schwartzian Transform Uri Guttman
- Re: Schwartzian Transform Russ Allbery
- Re: Schwartzian Transform Nick Ing-Simmons
- Re: Schwartzian Transform Adam Turoff
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform James Mastros
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform James Mastros
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform Peter Buckingham
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform Peter Buckingham
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform Ariel Scolnicov
- Re: Schwartzian Transform Mark-Jason Dominus
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform James Mastros