racket / racket/racket

Possibly incorrect behaviour in quasiquote

Open
#3,028 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
5.2k
Forks
698
Avg merge
18h 34m
Merged PRs (30d)
5

Description

I expected "(quasiquote (quasiquote unquote)" to produce "'`unquote" but instead it errors.

For (imperfect) reference, Chez Scheme Version 9.5's behaviour is the analogue to the above (though its printer omits the leading "'")

Transcript form Dr. Racket below:

(quasiquote unquote)
'unquote
(quasiquote (quasiquote unquote))
unquote: expects exactly one expression in: (unquote)

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

Reproduce the two quasiquote expressions in Dr. Racket and compare their results with the expected nested-quasiquote behavior described in the issue. Trace the quasiquote and unquote handling, then add coverage showing the intended result and verify that the reported expression no longer errors.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.