> > 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
- RFC 25 (v1) Multiway comparisons Perl6 RFC Librarian
- Re: RFC 25 (v1) Multiway comparisons Glenn Linderman
- Re: RFC 25 (v1) Multiway comparisons John Porter
- Re: RFC 25 (v1) Multiway comparisons Jonathan Scott Duff
- RFC: "Empty But True" Speci... John Porter
- Re: RFC 25 (v1) Multiway comparisons Ken Fox
- Re: RFC 25 (v1) Multiway compari... Jonathan Scott Duff
- Re: RFC 25 (v1) Multiway com... Ken Fox
- Re: RFC 25 (v1) Multiway com... Chaim Frenkel
- Re: RFC 25 (v1) Multiway comparisons Johan Vromans
- Re: RFC 25 (v1) Multiway comparisons Martyn J. Pearce
- Re: RFC 25 (v1) Multiway comparisons Damian Conway
- Re: RFC 25 (v1) Multiway comparisons Chaim Frenkel