[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: quote oddity
From: |
dsmich |
Subject: |
Re: quote oddity |
Date: |
Fri, 1 Apr 2011 18:29:25 -0400 |
---- Bill Schottstaedt <address@hidden> wrote:
> Does this strike you guys as kind of odd?
>
> guile> ((lambda (s c) (s c)) quote #f)
> c
> guile> ((lambda (q) (let ((x 1)) (q x))) quote)
> x
>
> I can't decide what I think.
Well, quote is syntax. You can't pass it around like a function. Guile 2.0
fixes that:
scheme@(guile-user)> ((lambda (s c) (s c)) quote #f)
While compiling expression:
ERROR: Syntax error:
unknown location: quote: bad syntax in form quote
scheme@(guile-user)> ((lambda (q) (let ((x 1)) (q x))) quote)
While compiling expression:
ERROR: Syntax error:
unknown location: quote: bad syntax in form quote
-Dale
- quote oddity, Bill Schottstaedt, 2011/04/01
- Re: quote oddity,
dsmich <=