|
From: | Rock |
Subject: | Guile 1.9 series, unquote and unquote-splicing not up-to-date. |
Date: | Tue, 14 Dec 2010 17:39:22 +0100 |
If an (unquote <_expression_> ...) form appears inside a <qq template>, however, the <_expression_>s are evaluated (“unquoted”) and their results are inserted into the structure instead of the unquote form.
If an (unquote-splicing <_expression_> ...) form appears inside a <qq template>, then the <_expression_>s must evaluate to lists; the opening and closing parentheses of the lists are then “stripped away” and the elements of the lists are inserted in place of the unquote-splicing form.
Any unquote-splicing or multi-operand unquote form must appear only within a list or vector <qq template>.
That just about says it all. Alan Bawden discussed the previous flaw in Scheme. Now it's cured. Hope to see the new rules in Guile too.
[Prev in Thread] | Current Thread | [Next in Thread] |