W3C home > Mailing lists > Public > www-webdav-dasl@w3.org > April to June 1998

semantics of AND and OR with zero or one argument.

From: Jim Davis <jdavis@parc.xerox.com>
Date: Mon, 20 Apr 1998 15:37:37 PDT
Message-Id: <3.0.3.32.19980420153737.00941100@mailback.parc.xerox.com>
To: www-webdav-dasl@w3.org
At 02:11 PM 4/20/98 PDT, Saveen Reddy (Exchange) wrote:
>Alan, 
>	As you point out the original 00 syntax was incorrect. That was an
>error corrected in the 01 version. The correction in 01 probably needs
>further work as well -- it defines AND and OR as accepting exactly
>two-arguments instead of any list of 2 or more. If there are no objections
>I'll go ahead and update the document to use the syntax you provided below.

Actually, there are perfectly clear semantics for AND and OR of one or even
zero operators.   AND with no arguments is trivially TRUE, and OR is FALSE. 

These are the definitions that fall out of defining AND as evaluating each
argument in turn, until FALSE (or should I say NIL) is obtained (yielding
FALSE) or end of list, which returns TRUE.  (Likewise, mutatis mutandis,
for OR.)  Lisp uses these semantics.

Why not support these semantics?
Received on Monday, 20 April 1998 18:38:00 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 22 March 2009 03:38:03 GMT