Re: Unquote syntax

2014-01-01 Thread Ian Price
Mike Gran writes: >   (quasiquote (sym unquote func)) >   `(sym unquote func) > > Is this a valid use of unquote? > > I get that (cons 'a (list 'b 'c)) == (list 'a 'b 'c), but, I'm not sure > if unquote should be valid in that sort of construction. As has already been pointed out, since ,foo is

Re: Unquote syntax

2014-01-01 Thread Panicz Maciej Godek
Hi, [...] > I expect the following to be equal, and they are. > > (cons 'sym func) > > (quasiquote (sym . (unquote func))) `(sym . ,func) > > Guile writes them both as > > (sym . #) > > But, the following is also equivalent, which is a surprise to me. > > (quasiquote (sym unquote func)) >

Unquote syntax

2013-12-31 Thread Mike Gran
Hi- With Guile 2.0.9, I'm struggling with unquote syntax. First, assume that there is already a defined function named 'func'. I expect the following to be equal, and they are.   (cons 'sym func)   (quasiquote (sym . (unquote func)))  `(sym . ,func) Guile writes t