On Sat, Feb 05, 2005 at 01:52:05PM +0000, Nicholas Clark wrote: > > #t and (0 | 6) < 2 # reduction in boolean context(!) > > Why is it allowed to do this?
Because "and" forces boolean context to determine whether it short-circuits or not. However, I should've make it clear that if the left hand side evaluates to #f, it will return the junction itself, not #f. This is true in both spec and pugs implementation. Thanks, /Autrijus/
pgpGt6mI3i4SY.pgp
Description: PGP signature