Damian Conway Wrote:
>> [worry #1] >> The hypothetical 'variables' we bind to aren't really variables >> but keys to a hash. >Welcome to Perl 6. Where *no* variable is really a variable, but > all are keys to a hash (which is known as the symbol table) ;-) Ok, you're obviously right. But $0{'$foobar'} still hurts my eyes, not to mention how mysterious it may look to newbies trying to cope with $h{$foo} and $h{foo} as well - unless we are really good at educating them (but we will be!). >> [worry #2] >> Since $0 has only a rather vague relation to $1..$n, maybe its >> name isn't that relevant. Especially since we'll be indexing >> into it all the time. Maybe $MATCH, $RESULT, $RX .... (those >> names aren't convincing me either, sorry). >I still think $0 is the right name for it. >> If nothing else, this would at least get rid of "one more >> cryptically named variable". >But only at the expense of adding one more arbitrarily named variable. :-( Coming to think of it, why have a named variable at all? If the match object gets returned anyhow there is no need for a cleverly named magical variable ($0, $MATCH, ...). David -- www.panmedia.dk - Ingenious perl consulting in Denmark, Scandinavia & the World