* quote oddity
@ 2011-04-01 21:38 Bill Schottstaedt
2011-04-01 22:29 ` dsmich
0 siblings, 1 reply; 4+ messages in thread
From: Bill Schottstaedt @ 2011-04-01 21:38 UTC (permalink / raw)
To: bug-guile
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: quote oddity
2011-04-01 21:38 quote oddity Bill Schottstaedt
@ 2011-04-01 22:29 ` dsmich
2011-04-01 22:53 ` Bill Schottstaedt
0 siblings, 1 reply; 4+ messages in thread
From: dsmich @ 2011-04-01 22:29 UTC (permalink / raw)
To: Bill Schottstaedt, bug-guile
---- Bill Schottstaedt <bil@ccrma.Stanford.EDU> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-04-02 0:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-01 21:38 quote oddity Bill Schottstaedt
2011-04-01 22:29 ` dsmich
2011-04-01 22:53 ` Bill Schottstaedt
2011-04-02 0:19 ` Andy Wingo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).