Improve quasiquote/unquote-splicing for better macro authoring #63
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
seq-lisp-2-backport
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
navicore/seq-lisp#63
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Ensure quasiquote expansion with unquote-splicing works robustly enough to support writing complex macros, especially for the self-hosted standard library.
Motivation
seq-lisp-2 has a clean
expand-quasiquoteimplementation with full splice support. Writing macros with quasiquote is much more natural than building list structure withlistandcons:This becomes especially important for variadic macros (e.g.,
(and a b c ...)) and the self-hosted standard library.Scope
,@works correctly in all positions (beginning, middle, end of list)Notes
seq-lisp already has quasiquote support, so this may just be a matter of testing and fixing edge cases rather than a new implementation. Most valuable in combination with the self-hosted stdlib effort.
Inspired by
seq-lisp-2/src/eval.seqexpand-quasiquote.