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

Re: Limitations of Attributes

Thread Previous | Thread Next
From:
Ovid
Date:
May 10, 2023 04:29
Subject:
Re: Limitations of Attributes
Message ID:
CA+M4CHv1aQWb_4gm36Mqq7dFZ3qkOOyjQJyLPeBFFfTEAiGfUg@mail.gmail.com
On Sun, May 7, 2023 at 3:15 PM Branislav Zahradník <happy.barney@gmail.com>
wrote:

>
> 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).

Best,
Ovid

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About