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

Re: chained comparisons

Thread Previous | Thread Next
From:
Karl Williamson
Date:
March 7, 2020 17:12
Subject:
Re: chained comparisons
Message ID:
b6ef97f1-cdb1-469a-a6c4-c5c3827f9f7a@khwilliamson.com
On 3/6/20 12:55 PM, David Nicol wrote:
> awesome possum!
> 
> On Fri, Mar 6, 2020 at 1:50 PM Zefram via perl5-porters 
> <perl5-porters@perl.org <mailto:perl5-porters@perl.org>> wrote:
> 
>     David Nicol wrote:
>      >does it short-circuit as soon as possible starting from the left, on
>      >failure? that is, when A is greater than B, C<<  A <= B <= C >> won't
>      >evaluate C?
> 
>     Yes, it does short-circuit in that case, and won't evaluate C.
> 
>      >also can the with and without equals versions (lt, le), (<, <=),
>     (gt, ge),
>      >and (>, >=) chain together
> 
>     Yes, all of those operators chain with each other.
> 
>     -zefram
> 
> 
> 
> -- 
> "I know Darth Vader's really got you annoyed
>   but remember if you kill him then you'll be unemployed" -- Alfred M. 
> Yankovic


Where do we stand on this?  Is it able to be put in core in the next 2 
weeks?

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