chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Syntax of case expressions


From: Ivan Raikov
Subject: Re: [Chicken-users] Syntax of case expressions
Date: Thu, 28 Feb 2008 12:10:57 +0900
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)


  Well, R5RS does not specify what happens in the second case, so you
can consider it a feature :-) 


Matt Gushee <address@hidden> writes:

>
> Wait a minute, though. I understand now why
>
>   (('a) ...)
>
> didn't match, but how is it that
>
>   ('a ...)
>
> isn't a syntax error? Is it because 'a expands to (quote a), and is
> thus treated by case as a list of the symbols quote and a? And if so,
> is that correct behavior? After all,
>
> csi> (pair? 'a)
> #f
>
> (as I expected).




reply via email to

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