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

lisp: Fix dumb symbol representation #25

Open
jorendorff opened this issue Jul 20, 2017 · 1 comment
Open

lisp: Fix dumb symbol representation #25

jorendorff opened this issue Jul 20, 2017 · 1 comment

Comments

@jorendorff
Copy link
Owner

Right now the Value::Symbol variant is a clown car, and there's some super tricky, uncommented code at the bottom of value.rs to cope with it. Separate variants Value::InternedSymbol(Whatever) and Value::Gensym(usize) would be way saner.

@jorendorff
Copy link
Owner Author

...On the other hand, gensyms might make a nice test case if the GC were to expose a WeakMap primitive.

...On the other other hand, WeakMaps are hard to implement efficiently.

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

1 participant