> > This RFC proposes that multiway comparisons such as:
> >
> >         if ( 0 <= $x < 10 ) {
> >                 print "digit"
> >         }
> >
> > should do what the user means.

I think this should mean what it means in Icon, namely, that
$x < $y  evaluates to false if $x >= $y, and evaluates to
"$y (but true)" if $x < $y.  This allows the operators to be
nested, i.e.   $x < $y < $z would be ( $x < $y ) < $z, which
performs the $y < $z comparison iff $x < $y.

But this is all off the top of my head; the Icon references
should be consulted on this.

-- 
John Porter

Reply via email to