Hi, Thomas Sandlaà wrote: > the main reason for this mail: aliasing $_ in methods to the first > invocant would badly mix these two concepts!
I think so, too. I'd like to see: $.foo # attribute of $?SELF @.foo # ditto %.foo # ditto &.foo # method of $?SELF .foo # method of $?SELF $_.foo # method of $_ This means that we've to write two additional letters in given {} and map {} and somesuch... @foo.map:{ $_.method > 42 } given $foo { $_.foo(42); $_.bar(23) } ...but it also means that * "." as secondary sigil ($.foo, @.foo, %.foo, &.foo) is consistent (always refers to $?SELF), and * you don't have to use $self in methods again only because you are (implicitly or explicitly) binding $_ to something else. IMHO, this advantages are worth the two extra chars. --Ingo -- Linux, the choice of a GNU | When cryptography is outlawed, bayl bhgynjf generation on a dual AMD | jvyy unir cevinpl! Athlon! |