develooper Front page | perl.perl5.porters | Postings from June 2022

Re: Pre-RFC: Optional Chaining

Thread Previous | Thread Next
Martijn Lievaart
June 5, 2022 18:30
Re: Pre-RFC: Optional Chaining
Message ID:
Op 05-06-2022 om 02:22 schreef Ricardo Signes:

> On Fri, Jun 3, 2022, at 23:13, breno wrote:

>> * speaking of regexes, should /$foo?->x?->y/ or /$foo?->{x}?->{y}/ work?
> /${foo}?/ already means "0 or 1 instance of the pattern in $foo", so I 
> think making ?-> work in there is no good.

So having a different syntax that does work in regexes would make sense. 
(But that might not be //-> either, how to parse "$x=~/$foo//->{x}/")?



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