[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Backquote simplification
From: |
Hans Aberg |
Subject: |
Backquote simplification |
Date: |
Thu, 9 Dec 2010 12:00:51 +0100 |
Is it possible to simplify the backquote construct `(,x_1 ... ,x_k)
(always unquote on all arguments) somehow, so that the unquote does
not need to appear multiple times (depending on k)? (I construct these
in the C-interface, and it would simplify not having to remove a
sequence of them.)
Specifically, in
(define g (lambda (x . y) `(,x . ,y)))
then evaluations like (g 1 2 3), (g 1 2 . (3 4)) work.
So I would want something like
(define g (lambda (x . y) (b x . y))))
where (b x . y) might be any expression where the unquote does not
need to appear on every variable. Only combinations line
(define g (lambda (x . y) (b `(,x . ,y))))
seem to work.
Hans
- Backquote simplification,
Hans Aberg <=
- Message not available
- Re: Backquote simplification, Hans Aberg, 2010/12/09
- Re: Backquote simplification, Neil Jerram, 2010/12/10
- Re: Backquote simplification, Hans Aberg, 2010/12/10
- Re: Backquote simplification, Neil Jerram, 2010/12/10
- Re: Backquote simplification, Hans Aberg, 2010/12/11
- Re: Backquote simplification, Neil Jerram, 2010/12/11
- Re: Backquote simplification, Hans Aberg, 2010/12/11