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. -- John Porter Give the braindead no head.
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform Jarkko Hietaniemi
- Re: Schwartzian Transform Simon Cozens
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform Trond Michelsen
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform Tad McClellan
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform James Mastros
- Re: Schwartzian Transform James Mastros
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform John Porter