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

From: Marco Morazan (morazanm at gmail.com)
Date: Fri Feb 15 16:32:07 EST 2008

On Fri, Feb 15, 2008 at 4:21 PM, Matthias Felleisen
<matthias at ccs.neu.edu> wrote:
>
>
> On Feb 15, 2008, at 4:09 PM, Marco Morazan wrote:
>
> >
> > Nonetheless, something fundamental has been lost here. Logical
> > functions are, after all, functions (from the perspective of a pure
> > mathematician and that is what students are calling me on).
>
>
> Your students are correct. BUT nothing has been lost:
>
> (define (and& x y) (and x y))
>
> (define (or& x y) (or x y))
>

But 'em apples are not as sweet as the utopian ones that are primitive
apples. ;-)

> Doable in Beginner and now you can talk about the slight but
> appreciable differences between plain mathematics and functional
> programming and computation.
>

Indeed, my thoughts excatly.

> -- Matthias, throwing you an apple from paradise :-)
>

Much obliged,

Marco


Posted on the users mailing list.