Larry and I recently discussed chaining inequality operators.
He's in favour of it, but not of complex semantics involving
properties and implicit state (as I originally proposed in the
RFC)

I think we will see n-ary comparisons allowed in Perl 6:

        if ($x < $y <$z < $foo) {...

but as special case syntactic sugar for the expANDed version:

        if ($x < $y && $y < $z && $z < $foo) {...

Oh, and with only single evaluation of each operand.

Damian

Reply via email to