[plt-scheme] What are "and" and "or" ?

From: Jon Zeppieri (zeppieri at gmail.com)
Date: Fri Feb 15 12:01:16 EST 2008

"and" and "or" are syntax, not procedures.  They have to be, since
they do not necessarily evaluate all of their arguments.

-Jon


On Fri, Feb 15, 2008 at 11:57 AM, Marco Morazan <morazanm at gmail.com> wrote:
> Dear All,
>
>  Are "and" and "or" primitives?
>
>  I see the following behavior (v370p1):
>
>  > +
>  #<primitive:+>
>  > <
>  #<primitive:<>
>  > or
>  or: bad syntax in: or
>  > and
>  and: bad syntax in: and
>  > (and #t #t)
>  #t
>  >  (or #f #f)
>  #f
>  >
>
>  So, why can I not pass and AND or around like + and * ?
>
>  Thanks,
>
>  Marco
>  _________________________________________________
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
>


Posted on the users mailing list.