Why not make "if" *not* be a special form in Scheme?.

Brad Beyenhof bbeyenhof at gmail.com
Sat Jan 26 10:24:37 PST 2008


On Jan 26, 2008 10:05 AM, Darren New <dnew at san.rr.com> wrote:
> Andrew Lentvorski wrote:
> > chris at seberino.org wrote:
> >> If I'm not mistaken, what makes a special form to be special is that
> >> evaluation happens abnormally....
> >
> > Why are "and" and "or" special forms yet "not" isn't?
>
> "not" only has one argument, so it always needs to be evaluated.
>
> If or's first value is true or and's first value is false, it doesn't
> matter what the second value is.

Which makes me think... does Scheme have a built-in XOR function?

-- 
Brad Beyenhof                                 http://augmentedfourth.com
The history of popular music is littered with great partnerships.
Rodgers had his Hammerstein, Lennon had his McCartney, and Lloyd Webber
had... his photocopier...                            ~Humphrey Lyttleton



More information about the KPLUG-LPSG mailing list