On Sat, Jun 13, 2009 at 01:25:23AM +0200, Daniel Carrera wrote: > Damian Conway wrote: >> In fact, I would even be happy with requiring @a.=push and @a.=shift, if >> it meant that there were *no* special cases. One extra character is a >> small price to pay for perfect SWIM (and not just "Say What I Mean", >> the real benefit is the other SWIM: "See What I Meant"). > > I don't like @a.=shift. It looks like @a = @a.shift, which is of course > not what you mean.
He meant unshift, I suspect. Nevertheless, for any major methods borrowed from Perl 6, I'm not inclined to change them that drastically. Much more likely to define them as sugar for the more general list operators: .push means .=append .unshift means .=prepend .splice means .=impend :-) or some such. Larry