jackfirth / jackfirth/resyntax

Suggest making shadowed quotes explicit

Open
#271 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

new lint
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.