J.J.A. Koot <koot@sara.nl> wrote:
+---------------
| As far as I know: (if '() 'a 'b) ==> b
+---------------
IEEE Scheme requires (if '() 'a 'b) ==> a
But in R4RS it says, "It is no longer specified whether the empty list
counts as true of false in conditional expressions." (But they then
implicitly [to my reading] encourage "true" by reminding the reader
about IEEE Scheme.)
In any case, implementations do vary, so using "null?" is always the
safest thing.
-Rob
-----
Rob Warnock, 7L-551 rpw3@sgi.com
Silicon Graphics, Inc. http://reality.sgi.com/rpw3/
2011 N. Shoreline Blvd. Phone: 415-933-1673 FAX: 415-933-0979
Mountain View, CA 94043 PP-ASEL-IA