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
- suggested properties of operator results Chris Hostetter
- Re: suggested properties of operator results Dave Storrs
- Re: suggested properties of operator results Chris Hostetter
- Re: suggested properties of operator results Graham Barr
- Re: suggested properties of operator results Simon Cozens
- Re: suggested properties of operator results Graham Barr
- Re: suggested properties of operator results Daniel S. Wilkerson
- RE: suggested properties of operator results Damian Conway
- RE: suggested properties of operator results David Whipp
- RE: suggested properties of operator results Damian Conway
- RE: suggested properties of operator results Dan Sugalski
- Re: suggested properties of operator results James Mastros
