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.

Reply via email to