develooper Front page | perl.perl5.porters | Postings from August 2021

Re: Twigils

Thread Previous | Thread Next
Ovid via perl5-porters
August 13, 2021 09:23
Re: Twigils
Message ID:
On Friday, 13 August 2021, 10:31:49 CEST, shmnem <> wrote:
 From the keyboard of Darren Duncan [13.08.21,00:58]:
> I propose $self~>x
> This is close enough, but maybe not visually distinct enough. Or is it?

We had discussed possibly using ~> as the "maybe this method exists" operator, so that if we chain:
    if ( $foo~>bar~>baz ) {
        ...    }
You're saying "if all of these methods exist and the final only returns a true value, then ..."
But that absolutely would not be in the MVP.
Best,Ovid-- IT consulting, training, specializing in Perl, databases, and agile development 
Buy my book! -

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