[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with cond macro.

From: Keith Wright
Subject: Re: Problem with cond macro.
Date: Fri, 26 Apr 2002 02:58:58 -0400

> From: Dirk Herrmann <address@hidden>
> Well, I'm not sure I understand all of this:  What about the following:
> (define => #f)
> (cond (#t => 'ok))
> Should this also deliver 'ok ?  It doesn't seem to with the current
> implementation of syncase.

A tricky question to be sure.  I would say "Yes", but would
listen quietly if Guy Steele had anything to say about it.
It doesn't surprise me that syncase does not get it right, it
was grafted on rather late in the game and still doesn't fit
quite right.  The => syntax in COND is a strange wart in
Scheme and there is a strong temptation to handle it
with special case code deep in the interpreter, rather
than write code for the general case which has only one

Among the several bugs, misfeatures, and holes in Guile,
I don't think this is one of the more important.

     -- Keith Wright  <address@hidden>

Programmer in Chief, Free Computer Shop <>
         ---  Food, Shelter, Source code.  ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]