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

hy-repr mishandles lexically illegal symbols and keywords #1617

Closed
Kodiologist opened this issue May 21, 2018 · 0 comments · Fixed by #2064
Closed

hy-repr mishandles lexically illegal symbols and keywords #1617

Kodiologist opened this issue May 21, 2018 · 0 comments · Fixed by #2064
Labels

Comments

@Kodiologist
Copy link
Member

Currently, the hy-repr of (HySymbol "a b") is 'a b, which obviously doesn't work. I initially thought we could use something like (HySymbol "a b"), but that's not correct in general; e.g., ((HySymbol "foo") x) is not equivalent to (foo x).

The most obvious solution to this is to implement a way to quote symbols (#1117) and use that. Alternatively, it may be possible to solve this with quasiquoting.

The good news is that this is an incredibly obscure bug, because what reason would one have to construct a lexically illegal symbol or keyword in the first place?

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

Successfully merging a pull request may close this issue.

1 participant