On Fri, Oct 03, 2008 at 10:02:56AM +0200, [EMAIL PROTECTED] wrote: > +#?rakudo skip ',=' > +#?DOES 2 > +{ > + my @a = 1, 2; > + is (@a ,= 3, 4).join('|'), '1|2|3|4', ',= on lists works the same as > push (return value)' > + is @a.join('|'), '1|2|3|4', ',= on lists works the same as push (effect > on array)' > + > +}
In general the #?DOES line is needed only if there's a loop or a test somehow is executed more times than it appears in the code. If the #?DOES line isn't needed, we probably don't want to add it (as it then becomes an additional item to be maintained as more tests are added). Pm