racket / scribble

Other
197 stars 91 forks source link

unbound identifier inside quasiquoted hasheq in #lang scribble/lp2 #245

Closed aymanosman closed 4 years ago

aymanosman commented 4 years ago

I discovered that his programming does not work.

#lang scribble/lp2

@chunk[<main>
       (define foo 42)
       `#hasheq((a . ,foo))]

The same issue does NOT occur with a quasiquoted list. So it seems to be something to do with #hash syntax.

Screen Shot 2020-06-13 at 16 30 57

aymanosman commented 4 years ago

FWIW, a simple workaround I used was to just to define hash's like this:

(hash 'a foo)

Which is arguably easier to read and understand anyway.

mflatt commented 4 years ago

Thanks for the report! This is a problem down in the syntax/strip-context library, and I'll push a repair.