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

Re: for perl 7

Thread Previous | Thread Next
Ricardo Signes
August 15, 2021 01:13
Re: for perl 7
Message ID:
On Mon, Aug 9, 2021, at 1:28 PM, Saašha Metsärantala wrote:
> doSomething if ($foo =ne $baz);
> where =ne would:
> • check if $foo and $baz are different and temporarilly store the result of this comparison "somewhere".
> • assign $baz into $foo
> • return the result of the comparison previously stored (above)


Thanks for writing.  My concern is that this feels like a fairly special case, and that producing a very compact syntax will force the reader of Perl to learn even more syntax, rather than to rely on the existing syntax.  New dense syntax should be reserved for very powerful or common operations, and my feeling is that this is neither.

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