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

Re: chained comparisons

Thread Previous | Thread Next
David Nicol
March 6, 2020 19:22
Re: chained comparisons
Message ID:
Questions without doing any research aside from skimming this thread:

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?

also can the with and without equals versions (lt, le), (<, <=), (gt, ge),
and (>, >=) chain together or must it be the same variant all the way

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