You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That one case was fixed, the cond/else does not work inside syntax-rules, but this is just a hack.
For now, I will just put it as a limitation of LIPS:
You can use symbols inside lisp macros that will be used in syntax-rules macros because symbols will be gensyms. As a workaround, you can use what cond is doing:
(and (symbol? x)
(or (eq? x 'else)
(eq? (--> (new lips.LString (x.literal)) (cmp "else")) 0)))
This could be abstracted into some small function. Not sure about the name gensym=? is once but I would expect both arguments to be gensyms.
This simple macro doesn't work:
It throws an error because
else
got renamed to#:else
.The text was updated successfully, but these errors were encountered: