feersum
feersum copied to clipboard
Macro Woes Tracking Issue
The current syntax-rules
implementation generally works, but leaves a little to be desired. Namely:
- [ ] No support for quoting of the ellipsis character
(... ...)
- [ ] Matching of patterns with
...
and.
should be greedier with the repeat? Not sure about this one. - [ ] What if the ellipsis is also a literal identifier?
- [ ] Macro hygiene
- [ ] Identifier hygiene
- [ ] Scope hygiene
- [x] Missing location on expanded templates.
- [ ] Substitutions inside quoted templates.
- [ ] Vector patterns and templates (
#(<pattern>+)
). - [ ] Macros are not included in compiled libraries.
- [ ] Re-export of macro items.
Another thing here is we parse templates and patterns with the same code. Templates can have arbitrary repeats. Patterns only one per form.