On Mon, Dec 24, 2007 at 05:12:24PM -0800, Christopher Pruden wrote: > # New Ticket Created by Christopher Pruden > # Please include the string: [perl #49085] > # in the subject line of all future correspondence about this issue. > # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=49085 > > > > I've put together a patch to add a 'pick' method to the perl6 > compiler's List class. This is mainly cargo-culted from the Junction > pick method, with a few changes to bring it inline with the pugs pick > method.
Excellent, thank you for the patch! Before I apply it, though, how hard would it be to submit the same functionality as a sub (or subs) written in Perl 6? I can certainly accept the function as a PIR sub, but I'm also looking to get as much of the libraries and compiler code written in Perl 6 as we can, and this looks like a really good candidate. What support would be needed from the perl6 compiler to do that? > Once again, criticism is more than welcome -- this is the first thing > bigger than hello world that I've done in PIR. No immediate criticism on my part as far as the PIR goes (I haven't reviewed it extensively) -- I'm just thinking this is a good point to figure out how we can get library functions to be written in Perl 6 instead of PIR. (See also RT#49173 for more details about this.) Thanks again! Pm