develooper Front page | perl.perl5.porters | Postings from March 2020

Re: chained comparisons

Thread Previous | Thread Next
From:
Todd Rinaldo
Date:
March 17, 2020 17:15
Subject:
Re: chained comparisons
Message ID:
6D048DF8-1837-4B08-9DE2-740B8230519C@cpanel.net


> On Mar 13, 2020, at 9:03 AM, Sawyer X <xsawyerx@gmail.com> wrote:
> 
> [Top posted]
> 
> 
> Unless I find more specific arguments for curtailing this behind experimental status (ones that specifically address this code), I think this can be added without an experimental flag.
> 
> 

My only concern is that if this code gets run on an older perl, the failure would be more obvious if it failed on use feature 'chained'; instead of the code itself.

$>perl5.30 -E' my ($a, $b, $c) = (1,2,3); say "ok" if($a < $b < $c)'
syntax error at -e line 1, near "$b <"
Execution of -e aborted due to compilation errors.


Todd

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