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

Re: Pre-RFC: Optional Chaining

Thread Previous
From:
"G.W. Haywood" via perl5-porters
Date:
June 4, 2022 07:27
Subject:
Re: Pre-RFC: Optional Chaining
Message ID:
4e1f355b-a4ad-511d-b73c-5b31418f3678@jubileegroup.co.uk
Hi there,

On Sat, 4 Jun 2022, breno wrote:

> ...
> * how would it handle things like $foo?->{x}?->{y} = 42
>
> Same as $foo->{x}{y} = 42 if defined $foo && defined $foo->{x} && defined
> $foo->{x}{y}   (except way more readable)
> ...

Run that one by me again?

-- 

73,
Ged.

Thread Previous


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