unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* 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

* Re: quote oddity
  2011-04-01 22:29 ` dsmich
@ 2011-04-01 22:53   ` Bill Schottstaedt
  2011-04-02  0:19     ` Andy Wingo
  0 siblings, 1 reply; 4+ messages in thread
From: Bill Schottstaedt @ 2011-04-01 22:53 UTC (permalink / raw)
  To: dsmich, bug-guile

> Well, quote is syntax.  You can't pass it around like a function.  Guile 2.0 fixes that: 

that's an improvement?  




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: quote oddity
  2011-04-01 22:53   ` Bill Schottstaedt
@ 2011-04-02  0:19     ` Andy Wingo
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Wingo @ 2011-04-02  0:19 UTC (permalink / raw)
  To: Bill Schottstaedt; +Cc: bug-guile

On Sat 02 Apr 2011 00:53, "Bill Schottstaedt" <bil@ccrma.Stanford.EDU> writes:

>> Well, quote is syntax.  You can't pass it around like a function.  Guile 2.0 fixes that: 
>
> that's an improvement?  

I *think* so.  I think we can agree that in general uniformity is
better, and this case certainly has that property.

I don't know how supporting first-class syntax could help anything in
this case.

Andy
-- 
http://wingolog.org/



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