On Tue, 8 Feb 2005 11:12:40 +0800, Autrijus Tang <[EMAIL PROTECTED]> wrote:
> On Mon, Feb 07, 2005 at 05:33:06PM +0100, Miroslav Silovic wrote:
> > my $a = (0 | 6);
> > say 4 < $a and $a < 2;
> 
> Yup.  My mathematic intuition cannot suffer that:
> 
>     4 < X < 2
> 
> to be true in any circumstances -- as it violates associativity.
> If one wants to violate associativity, one should presumably *not*
> use the chained comparison notation!

Indeed. It smells like "relational" algebra, so we can confirm this
intuition with a rather familiar example:

select * from $a cross join $b cross join $c
where a < b and b < c

Looks right to me! I look forward to the SQL query construction
modules in Perl6. :)

Ashley

Reply via email to