[Chicken-users] Macro returning multiple nodes?

2014-09-20 Thread Mathieu
Hi everyone, Writing macros with the er-macro-transformer syntax has been a charm so far.But I am now trying to accomplish something that might not make sense.I would like to use the following syntax in my code: ;; make the get-session-response (make-get-session-response

Re: [Chicken-users] Macro returning multiple nodes?

2014-09-20 Thread Evan Hanson
Hi Mathieu, The usual way to do this is to splice the multiple forms you want to return into a `begin`: `(begin ,@(map (lambda (record-value) `(,(symbol-append record-symbol '- record-value) ,record-symbol)) record-values)) Cheers, Evan