> > This kind of clever magic always makes me nervous:
> > it introduces subtle bug potentials.
> > 
> >   (7,8,9) == 3 # true
> >   (7,8)   == 2 # true
> >   (7)     == 1 # false
> 
> Why is this one false?  I'd expect it to be true just as the others.

(7) == 7 

why?  Otherwise, we couldn't use parens for mathematical expressions

(3 + 4) == 7  -- the mathematical way
(3 + 4) == 1  -- the length of the list ... BAD!

Tanton

Reply via email to