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

Re: Pre-RFC: Optional Chaining

Thread Previous | Thread Next
From:
Ovid
Date:
June 4, 2022 09:17
Subject:
Re: Pre-RFC: Optional Chaining
Message ID:
CA+M4CHvzQ8LXvk1wudE4qoza3C3e7LYYa3UkM8Wj9mRYMsm7rQ@mail.gmail.com
On Sat, Jun 4, 2022 at 5:13 AM breno <oainikusama@gmail.com> wrote:

breno,

First, thanks for your magnificently detailed and patient explanations. I'm
quite impressed! I've long wanted this feature for Perl and I'd be
delighted to see this feature implemented.

* definedness vs truthfulness
>
> Some pointed "?->" may be associated with truthfulness due to the ternary
> operator "?:", whereas "//" could be more appropriate as it associates with
> definedness,
>

The fact that "?" is used in several other languages for this construct is
compelling to me. More to the point, if we're going to go to YAPC (Yet
Another Punctuation Character"), at least introduce one that would read
naturally to users coming from other languages. Thus, "?->" feels both
natural and appropriate to me.

Best,
Ovid

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