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

Re: Pre-RFC: Optional Chaining

Thread Next
July 17, 2022 19:23
Re: Pre-RFC: Optional Chaining
Message ID:
On Thu, Oct 28, 2021 at 02:39:15PM -0300, breno wrote:
> ## Rejected Ideas
> I am unaware whether this feature has already been proposed for Perl 5
> in the past.

For completeness, I have (finally) looked in the archives for previous
proposals for the same feature. It used to be called "safe dereference"
or "safe arrow", and was discussed over a decade ago.

Here are the three threads I found:

    Subject: [PATCH] Add "safe arrow/safe dereference" operator: &&->
    From: David Caldwell
    Date: Fri, 12 Nov 2010 20:56:43 -0800         
    Messages: 80, includes a patch

    Subject: Semantics of safe-deref          
    From: Jesse Vincent
    Date: Mon, 29 Nov 2010 16:26:57 -0500 
    Messages: 20

    Subject: the old new safe dereference operator
    From: Ricardo Signes
    Date: Thu, 24 May 2012 21:51:16 -0400
    Messages: 85

It would be worth reading them, in case some of things discussed then
were not discussed this time around. And maybe a ten years old patch can
still be somewhat useful.

 Philippe Bruhat (BooK)

 We laugh at stupidity because the alternative is to cry over it.
                                    (Moral from Groo The Wanderer #71 (Epic))

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