develooper Front page | perl.perl6.language | Postings from February 2004

Re: The Sort Problem (was: well, The Sort Problem)

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
February 13, 2004 06:02
Subject:
Re: The Sort Problem (was: well, The Sort Problem)
Message ID:
a06010201bc52886000ca@[172.24.18.98]
At 11:52 PM -0700 2/12/04, Luke Palmer wrote:
>But it needs some major syntax work so it can feel more like it's a part
>of the language instead of a library function.  Not, mind, that I think
>Perl's syntax needs to be changed at all to accommodate.

Since everyone's well past mad here and deep into drug-induced brain 
damage territory...

If you're *really* looking to get fancy, why not just allow the sort 
specification to be done with SQL? Comfortable, well-understood, 
already has a decade or so of stupid things welded into it (so 
everyone can stop trying to think up new stupid things to weld in), 
and there are several grammars for it so it'd be no work to speak of 
for me.

Heck, you could even unify map, grep, and sort and, if you fed in a 
list of pair lists or hashes, return parts of each record^Wlist 
element rather than the whole thing.
-- 
                                         Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                       teddy bears get drunk

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About