jackfirth / jackfirth/resyntax
Ask politely for a stable macro expander hook
Nobody has claimed this yet.
- Dominant language
- Racket
- Stars
- 70
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
At present, resyntax relies on the undocumented and deeply magic current-expand-observe parameter (intended for the macro stepper) to apply refactoring rules to visited syntax objects. This has a few problems:
- It's an unstable API whose details change whenever the macro expander or macro stepper changes.
- It provides way more information than
resyntaxneeds. Allresyntaxneeds is a list of original syntax objects visited during expansion. - It doesn't provide a way to pause expansion, so there doesn't seem to be a way for refactoring rules to use
local-expandorsyntax-local-value.
Eventually it would be nice to have a public, documented, stable, and less powerful alternative to current-expand-observe in Racket.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading how resyntax currently relies on the undocumented current-expand-observe parameter. The issue calls for a public, documented, stable, less powerful alternative that provides visited syntax objects and can pause expansion for local-expand or syntax-local-value. Done means the alternative exists and addresses these stated limitations.
Written by the indexing model from the issue text.
Assessment
- Domain
- devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100