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

Strange behavior with macro expanding #31

Open
ooichu opened this issue Jul 3, 2023 · 1 comment
Open

Strange behavior with macro expanding #31

ooichu opened this issue Jul 3, 2023 · 1 comment

Comments

@ooichu
Copy link

ooichu commented Jul 3, 2023

For example (is nil ((mac () nil))) returns nil, although the macro expands to nil and this should be equivalent to (is nil nil).

The problem is that when the macro is evaluated, the value of the original form is replaced by the result of the macro expansion and create new nil object.

@thacuber2a03
Copy link

that's weird, considering there's only one nil in the entire language, and anything that returns/evaluates to nil evaluates to that nil

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