develooper Front page | perl.perl5.porters | Postings from February 2021

Re: undoing of auto-deref removal

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
February 28, 2021 09:44
Subject:
Re: undoing of auto-deref removal
Message ID:
20210228094450.3402d53e@shy.leonerd.org.uk
On Sat, 27 Feb 2021 23:21:21 -0800
L A Walsh <astara@tlinx.org> wrote:

> It seems all of the reasons against auto-deref were answered
> in-so-much that
> that claims of ambiguity were shown not to exist.  For example, in
> the case of use of 'keys'.  Without autoderef, the language requires
> a perlvar of type ARRAY or HASH with a '@' or a '%' in front of it.
> Autoderef only supported the option of having a reference to something
> that would have had an '@' or a '%' in front of it.  Since perl always
> knows the type of vars having an '@' or '%' in front of, then
> a reference to either can automatically, and unambiguously always be
> assumed to be of type that would have had an '@' or '%'.

This has been discussed aplenty on

  https://github.com/Perl/perl5/issues/18532

I don't believe this email thread adds anything new to the subject.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

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