Front page | perl.perl6.language |
Postings from May 2005
From: Matt Diephouse
May 15, 2005 17:54
Message ID: firstname.lastname@example.org
Damian Conway <email@example.com> wrote:
> Larry Wall wrote:
> > On Sun, May 15, 2005 at 12:22:07PM -0400, Matt Diephouse wrote:
> > : Does this mean private methods will be called like this?
> > :
> > : ./:method()
> > No, I think that's still just
> > .:method()
> This missing design rationale here is that the colon acts as part of the unary
> ./ unary public-method-call-on-invocant
> .: unary private-method-call-on-invocant
This introduces some asymmetry with accessors, which are currently
$.attr and $:attr. I think in this case it's more consistent to use
the $/attr for public attributes. Unfortunately, I find that rather
ugly, which is why I gave up trying to find a secondary sigil for
public methods called on the invocant in the first place.
In other words, I don't see any solution here that is less than ideal.