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

Re: Two further features, one definitely needed for survival, otherlikely needed.

Thread Previous | Thread Next
From:
Philip R Brenan
Date:
May 23, 2021 20:17
Subject:
Re: Two further features, one definitely needed for survival, otherlikely needed.
Message ID:
CALhwFR=+esu=m=04K-KhhgjB5jLdQKRLO-AjSWJP8-LZsdPiHA@mail.gmail.com
We can even remove sigils in cases where variable names are overloaded:

my $a = 1
my @a = {2)
my %a  = {3=>4}

a[0] = 3;  # Clearly an array reference
a{3} = 6;  # Clearly a hash reference

User defined operators can further ameliorate this situation:

 a *@* 1 = 2;  # Assign an element to an array
 a *%* 3 = 7;  # Assign to an element of a hash.

The advantage of making Perl capable of optionally emulating other
languages via *use autoderef* ,  *no sigils, *user defined infix operators
etc. is that it provides a frictionless  path along which  people tired of
the failings and autocracy of the lesser languages can easily migrate to
the freedom and justice for all guaranteed by Perl.  The converse action,
actively pushing away users who have given their lives to Perl merely
hastens our decline and the day of our fall and if we were to do that ( I
am sure we would not), then we would deserve no better fate.


On Sun, May 23, 2021 at 8:44 PM Paul "LeoNerd" Evans <leonerd@leonerd.org.uk>
wrote:

> On Sun, 23 May 2021 12:33:58 -0700
> L A Walsh <astara@tlinx.org> wrote:
>
> > 2) Going 'unnecessary-sigil' optional.
>
> My personal response here:
>
> If you wanted Python, you know where to find it.
>
> --
> 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