-
Notifications
You must be signed in to change notification settings - Fork 160
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
Update OR= to support unbound variables #158
base: master
Are you sure you want to change the base?
Conversation
Could you update the title (and maybe description) with precisely what functionality is being added here? I know you link to the discussion, but I'm not confident I followed it entirely. Is it just supporting unbound variables? If so, it's interesting that the new implementation is nothing like the old one. If I know what functionality is being added, I can go back and add more tests once this PR is merged. |
Hmm, I'm not confident with that approach -- I think
In official Arc, maybe that would be fine, but in Anarki, it's possible for variable names to perform complex behaviors when they're evaluated, so they might throw exceptions for reasons other than being unbound. I feel like a proper approach to this would involve refactoring how |
👍 to the title change. |
Yeah, I think it's just unbound variable support. As for the implementation, I lifted it from laarc. I didn't know arc already had an I attempted to make anarki reloadable in this commit: 7ed7d12 |
Oh, I just realized another thing about this that isn't quite right: The design of |
Hmm, I'm sorry I seem to be rattling off a lot of different comments in a disorganized way today, but another thing comes to mind: Your implementation uses |
Interesting. Could you give an example? |
Good point! This should get resolved with the env changes from #151 |
I haven't tested this yet, but try this:
I think the current |
http://arclanguage.org/item?id=21145