Jarkko Hietaniemi wrote:
> ST (or GR) applies to any situation where you your sort
> comparator function isn't directly expressible with (Perl) primitives,
> and worthwhile it is (like Yoda feel I) when the cost of converting
> the keys (so that the primitives can again be employed) begins to
> dominate the overall cost of sort().
Of course. So how is the ST justified when you simply want to
sort by length? I.e., why is this not sufficient:
sort { length($a) <=> length($b) } # I see no ST here.
And this was alleged to be the most common case for ST.
--
John Porter
Useless use of time in void context.
- Re: Schwartzian Transform Dan Sugalski
- Re: Schwartzian Transform James Mastros
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform Uri Guttman
- Re: Schwartzian Transform Simon Cozens
- Re: Schwartzian Transform indigo
- Re: Schwartzian Transform Uri Guttman
- Re: Schwartzian Transform Simon Cozens
- Re: Schwartzian Transform John Porter
- Re: Schwartzian Transform Jarkko Hietaniemi
- 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
