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: Matt Gushee
Subject: Re: [Chicken-users] Syntax of case expressions
Date: Wed, 27 Feb 2008 20:08:51 -0700
User-agent: Thunderbird 2.0.0.9 (X11/20071212)

Matt Gushee wrote:

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).

[with apologies for replying to myself]

Oh, wait:

csi> (pair? ''a)
#t

Aha! I think I'm starting to understand this quoting stuff.

--
Matt Gushee
: Bantam - lightweight file manager : matt.gushee.net/software/bantam/ :
: RASCL's A Simple Configuration Language :     matt.gushee.net/rascl/ :




reply via email to

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