The Raku Programming Language Collect, Conserve and Remaster Project
Originally published on 13 February 2009 by Jonathan Worthington.
Since I had no time for Rakudo day last week, this week I’m doing two of them, in order to get caught up a bit! So, here’s what I got done today. Some of the tickets I dealt with today weren’t just a clear-cut case of “this is wrong”, but often needed careful checking against the spec, or clarifications to it; I even rejected one bug report, since it expected something to work that went against the spec (plus there was a failing test for it, which I now removed).
Anyway, here’s a list of the things that got fixed.
is copy trait on parameters when applied to array and hash parameters; now it does the Right Thing on them. Wrote some tests.my $x = -> {}; my $y = $x and my $x = do given 5 {} will just give you an undef in $x now, not a Null PMC access.:x($n) in .subst - both the string and regex variants - to handle the case where $n is greater than the number of matches that can be done (it should hand back the original string; before it would do as many as it could and then hand back the string).Whatever (*) when doing smart-matches with arrays, plus added them to the test suite.sub foo($bar where /baz/) { } and such things.given / when.class A {
has $.x;
method nothing { $.x == 0 }
method large { $.x > 100 }
};
for 0,100,200 -> $x {
say "Considering $x";
given A.new(:$x) {
when .nothing { say "nothing" }
when .large { say "large" }
}
}
Output:
Considering 0
nothing
Considering 100
Considering 200
large
I have also reviewed quite a lot of tickets, and closed quite a few that related to issue that had now been fixed (either as a side-effect of fixing other tickets, or thanks to ongoing development). Between the fixes on this Rakudo Day and the one earlier in the week (along of course with the input and help of others) we have gone from over 270 tickets on Wednesday morning to 245 tickets now. So while we’ve some way from the more manageable size of queue that I’d like - one that I can review fairly quickly and mostly keep in my head - we’re some steps closer. :-) Thanks very much to Vienna.pm for funding this work.