Front page | perl.perl6.language |
Postings from May 2005
From: Luke Palmer
May 16, 2005 03:02
Message ID: firstname.lastname@example.org
I am currently failing to see the need for a distinction between $.
and $: . The only difference is in whether accessors are *generated*;
the attribute access itself is no different. If you want to refactor
and turn your auto-accessor into a custom one, you have to go
replace $. with $: everywhere it is mentioned.
 Well, you don't have to, but you probably would have written it
with a $: if you knew about the accessor all along. Stylistically, I
don't think it's a good distinction to have, because when there are
explicit accessors present, there is no distinction.