#lang sugar/debug does not export identifiers to REPL #9

Closed
opened 9 years ago by mbutterick · 2 comments
mbutterick commented 9 years ago (Migrated from github.com)
#lang sugar/debug racket
(provide (all-defined-out))
(define foo 42)

> foo
foo: undefined;
 cannot reference an identifier before its definition
``` racket #lang sugar/debug racket (provide (all-defined-out)) (define foo 42) > foo foo: undefined; cannot reference an identifier before its definition ```
AlexKnauth commented 9 years ago (Migrated from github.com)

This works fine for me ... ??

This works fine for me ... ??
AlexKnauth commented 9 years ago (Migrated from github.com)

Oh! I think it's to do with hygiene in the new macro expander vs. the old one.
I just tried it with 6.1.1 and got that error, but it works with the new macro expander in a recent snapshot. It still works fine within modules, but I think the repl is off by a syntax-mark or something.
I think I have an idea of how to fix it, and I'll try making a pull request.

Oh! I think it's to do with hygiene in the new macro expander vs. the old one. I just tried it with 6.1.1 and got that error, but it works with the new macro expander in a recent snapshot. It still works fine within modules, but I think the repl is off by a syntax-mark or something. I think I have an idea of how to fix it, and I'll try making a pull request.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mbutterick/sugar#9
Loading…
There is no content yet.