Boolean values: Difference between revisions
Content added Content deleted
(added common lisp, scheme) |
(→{{header|Common Lisp}}: nitpickery, ext link, mention "symbol") |
||
Line 26: | Line 26: | ||
=={{header|Common Lisp}}== |
=={{header|Common Lisp}}== |
||
The only value in Common Lisp that is false is < |
The only value in Common Lisp that is false is the symbol <code>nil</code>; all other values are true. The symbol <code>t</code> is the canonical true value. |
||
Considered as variables, <code>nil</code> and <code>t</code> are bound to themselves ("self-evaluating"). <code>nil</code>, as well as being false, is used as the empty list; i.e. an empty list is false. |
|||
Everything else is true. The constant <tt>t</tt> represents the canonical true value. |
|||
For more information, follow the links from [http://www.lispworks.com/documentation/HyperSpec/Body/t_ban.htm CLHS: Type BOOLEAN]. |
|||
=={{header|E}}== |
=={{header|E}}== |