[Top][All Lists]

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

Re: [Chicken-users] case - should that even work?

From: Martin Schneeweis
Subject: Re: [Chicken-users] case - should that even work?
Date: Sun, 15 Jul 2018 23:24:30 +0200

Hi Thomas,

Thomas Chust <address@hidden> wrote:
> <address@hidden> wrote:
> > [...]
> > please can someone explain to me why the following even works?
> > 
> >   (define sym 'b)
> > 
> >   (case sym
> >     ('a "an 'a'")

> [...]
> The apostrophe is a *reader* macro, so before the compiler or
> interpreter ever gets to see that code, 'a is transformed to (quote
> a), 'b to (quote b) and 'c to (quote c). These three forms are
> obviously lists
> [...]

Thank you very much for the clarification. I guess it takes a
while to read and write scheme code fluently...


reply via email to

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