develooper Front page | perl.perl5.porters | Postings from May 2023

Re: Limitations of Attributes

Thread Previous | Thread Next
May 10, 2023 04:29
Re: Limitations of Attributes
Message ID:
On Sun, May 7, 2023 at 3:15 PM Branislav Zahradník <>

> OK, maybe bad wording again. I meant, when there will be possibility to
> change `$self` into something else,
> it should be same for every method in class. eg:
> class :self($foo) FOO

My hope is that this won't happen any time soon. This provides no overall
benefit to the language and merely exists to provide an aesthetic benefit
to the handful of developers who prefer a different name.

However, we do not need any new attributes behavior implement this, so it's
kind of outside the scope of this thread (we'd potentially need new
behavior for the new class syntax to allow this kind of change, but it's an
extremely low priority and probably best avoided).


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About