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

Re: Pre-RFC: Optional Chaining

Thread Previous | Thread Next
June 4, 2022 09:17
Re: Pre-RFC: Optional Chaining
Message ID:
On Sat, Jun 4, 2022 at 5:13 AM breno <> wrote:


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.


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