The care and feeding of S29 (Re: Better "sort" spec?)

2008-12-27 Thread Carl Mäsak
Carl (>): > S29 needs a lot of care and feeding of this type. I've made a long > list of things that need attention -- might return to this thread > early next week and paste that list, so that more hands can help. Here is that list: People can help by

Re: Better "sort" spec?

2008-12-16 Thread Larry Wall
On Fri, Dec 12, 2008 at 11:49:37PM -0500, Uri Guttman wrote: : so you have not discovered something new in perl or perl6 regarding : sorting. it has been covered and in depth but never properly integrated : into the p6 docs. It will be more useful if you comment relative to the existing design fou

Re: Better "sort" spec?

2008-12-13 Thread Patrick R. Michaud
On Fri, Dec 12, 2008 at 11:49:37PM -0500, Uri Guttman wrote: > > @sorted = sort {(%M{$^a}//-M $^a) <=> (%M{$^b}//-M $^b)} @unsorted; > @sorted = map $_[1], sort {$^a[0] <=> $^b[0]}, map [-M,$_], @unsorted; > > would both become: > > @sorted = sort {-M} @unsorted; This prompted me

Re: Better "sort" spec?

2008-12-13 Thread Carl Mäsak
Carl (>): > I have a couple of patches waiting to be written and integrated into > S29. The addition of the new signature to sort is one of them. I > expect a sudden inflow of round tuits early next week. Oh, and I now see that moritz++ went and simply added it. JFDI++. S29 needs a lot of care an

Re: Better "sort" spec?

2008-12-13 Thread Carl Mäsak
Uri (>): > [...] > > well, it is sort (sic) of just like what damian posted almost 5 years > ago. i found this post covers something very similar to the rakudo > implementation. i can't seem to find this proposal in any of the > synopses (at least a quick google search found nothing) so maybe it >

Re: Better "sort" spec?

2008-12-12 Thread Uri Guttman
> "TSN" == Timothy S Nelson writes: TSN> Hi all. I saw the new "sort" idea on the Rakudo blog: TSN> http://www.rakudo.org/2008/12/its-sort-of-like.html TSN> ...and wondered if we can get it in the spec, as I haven't TSN> seen any discussion on it or anythi

Better "sort" spec?

2008-12-12 Thread Timothy S. Nelson
Hi all. I saw the new "sort" idea on the Rakudo blog: http://www.rakudo.org/2008/12/its-sort-of-like.html ...and wondered if we can get it in the spec, as I haven't seen any discussion on it or anything. :) --