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

Re: Twigils

Thread Previous | Thread Next
From:
Ovid via perl5-porters
Date:
August 13, 2021 09:23
Subject:
Re: Twigils
Message ID:
1162815085.103387.1628846608019@mail.yahoo.com
On Friday, 13 August 2021, 10:31:49 CEST, shmnem <gm@qwurx.de> 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?

shmnem,
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 developmenthttp://www.allaroundtheworld.fr/. 
Buy my book! - http://bit.ly/beginning_perl

  
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