Larry Wall wrote: > > [ Stuff about how commas construct lists, not parens ] >
Wow, somehow you've convinced me that all the problems I saw before aren't really there. Well, switch on the light, there's no monsters under the bed afterall. > : This has the added benefit that there is a significant > : visual clue about when a list is being tossed around. This doesn't break > : any convenience, just changes the look of it: > : > : # Perl 6 # Perl 5 > : [$a, $b] ^= [$b, $a]; # ($a, $b) = ($b, $a) > : print *[$a=$b],"\n"; # print(($a=$b), "\n"); > : push @a: *[1,2,3]; # push @a, (1,2,3); > : push @a: [1,2,3]; # push @a, [1,2,3]; > > I'd rather they just work the way people expect from Perl 5. Requiring > people to say *[1,2,3] when they could say 1,2,3 is needless obfuscation. According to the RFC, they could say it either way. I suppose I should have clarified that. Well, fine, there goes my argument. I ended up happy, though. Luke