Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The “Add Require Prefix” option does incorrect things in non-Racket languages #76

Open
lexi-lambda opened this issue Sep 19, 2016 · 2 comments

Comments

@lexi-lambda
Copy link
Member

If you use the “Add Require Prefix” option in a language without prefix-in, or even worse, without s-expression syntax at all, DrRacket will happily insert prefix-in anyway, producing code that doesn’t compile (or, depending on the language, might not even read properly).

@rfindler
Copy link
Member

rfindler commented Sep 19, 2016 via email

@lexi-lambda
Copy link
Member Author

I’m not sure, though it’s probably not a pressing issue. The simplest hack would be to only enable it in #lang racket and #lang racket/base, but a better case would be to somehow figure out what host language supports this sort of refactoring, maybe via syntax properties or get-info. Maybe @dfeltey has some ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants