Confusion about symbols

Hi,

I was playing around with writing a macro over the spec.test/check function and couldn’t figure out why one approach was working and the other didn’t.

My assumption would be that since macroexpand-1 returns the same results they would work the same, but this isn’t the case.

Any help would be greatly appreciated.

in check2, you pass a namespaced symbol, and in check1 you pass a non-namespaced symbol

(didn’t run your code, but I would guess that’s the problem)

I thought that might be the case, but wasn’t sure since when I macroexpand check1 it does namespace the symbol.

Is there an alternative to quote that namespaces? I tried a nested backtick but that would just give me a namespaced tmp-sym symbol.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.