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

Re: Limitations of Attributes

Thread Previous | Thread Next
From:
Branislav Zahradník
Date:
May 6, 2023 05:41
Subject:
Re: Limitations of Attributes
Message ID:
CAB=rbO=tAgxRJzOOFPj-ygjLunPw5sWZz=93xtcjcp4i7Q6u7g@mail.gmail.com
> A quick note on that part - the newly-added `method` keyword doesn't
> allow you to rename the invocant variable at all. You just get `$self`,
> so there's no such syntax ambiguity here to worry about.
>
>
If ever supported, it should be part of `class` syntax and not method
Every method of same class should use same name for `$self`


> --
> Paul "LeoNerd" Evans
>
> leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
> http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/
>

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