>>>>> "Uri" == Uri Guttman <[EMAIL PROTECTED]> writes:

Uri> i will let damian handle this one (if he sees it). but an idea would be
Uri> to allow some form ofkey extraction via a closure with lazy evaluation
Uri> of the secondary (and slower) key.

I still don't see that.  I understand about the lazy key evaluation.
However, the sort block in Perl5 contains more than just two key
computations: it also contains the logic to decide *how* to compare
the keys, and *when* more information is needed (a secondary key step,
for example).  Not sure how you're going to replace that with just
information about how to compute "a key".  I think you've had your head
inside GRT for too long. :)

So, for the simple case (string sort against some function of each item),
I can see the need for a good shortcut.  However, the general case (let
me tell you how to sort two items), you'll still need a very perl5-ish
interface.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Reply via email to