User Tools

Site Tools


ch2_1_unquote

This is an old revision of the document!


UNQUOTE

Unquote form expect one argument. If unquote appears outside of backquoted list, it is ignored, and the argument is evaluated normally. But within a backquoted list, or any of its sub-lists, we can switch some symbols or sub-lists back to code mode with unquote character , (comma), which reader expands to unquote form.

>(setq b 3)       ; set value of symbol B
3
>`(a ,b c)        ; unquoted b
(A 3 C)           ; symbols A and C are not evaled, but B is
>(setq b 3)       ; set value of symbol B
3
>`(a ,b c)        ; unquoted b
(A 3 C)           ; symbols A and C not evaled, but B is
ch2_1_unquote.1618739162.txt.gz · Last modified: 2021/04/18 03:46 by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki