jackfirth / jackfirth/resyntax
Suggest making shadowed quotes explicit
Nobody has claimed this yet.
- Dominant language
- Racket
- Stars
- 70
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
Resyntax ought to suggest rewriting this code:
(define (quote x) (* x 2))
'a
Into this:
(define (quote x) (* x 2))
(quote a)
That is, when somebody redefines quote to mean something other than regular quoting, Resyntax should suggest the quote be written out explicitly. Relying on this sort of implicit redefinition due to the unhygienic nature of quoting is very confusing, and it can happen accidentally if somebody doesn't realize quoting works this way.
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
No source file or test is named in the issue. Start by locating the refactoring rule that handles shorthand quote syntax and checks bindings for quote. Done means a shadowed quote is suggested in explicit form while ordinary quote usage remains unchanged; add or update coverage for the Scheme examples shown.
Written by the indexing model from the issue text.
Assessment
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100