-
Notifications
You must be signed in to change notification settings - Fork 370
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
NameError for HyList, HyDict ... #1045
Comments
Each of the classes in within a module in
|
Hy doesn't always import things until it needs them. You can use
The key line is |
Odd behavior, but intentional. I'll just close this for now. |
Actually, I'm inclined to think this a bug; if we need to import a name that isn't a Hy builtin, it should be imported with a gensym. But it would make sense to make |
Indeed, would make sense to have |
Let's add the Hy models to core then. |
Gilch (#1360 (comment)) mentioned that |
Evaluating HyDict raises a NameError but once I evaluate '{}, it is defined in the env.
So I had to write like (instance? (type '{}) expr) instead of (instance? HyDict expr).
All the other HyObjects are the same.
I'm not sure if it is an intended behaviour or a bug.
The text was updated successfully, but these errors were encountered: