Replies: 1 comment 1 reply
-
|
A quoted form is just that a quoted form that is never executed. While you could use eval of the quoted form passed in, consider a macro. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
GOAL: I want to pass in a form, perform a logic test and if the test is T return the form, otherwise return NIL.
PROBLEM: I am confused by the behaviour of CLOG. The simplest possible example of the confusing behaviour:
We are leaving this function empty just for the purposes of testing and comparison.
a) In the Slime console we get the following results:
b) However, in CLOG, the behavior with the above code is slightly different:
What is going on here to allow (foo (create-div container :content "there")) to render in CLOG? I was expecting NIL and for the form to not render.
PURPOSE OF THE TEST: I want to create a function that can get a form passed in, have the function perform a logic test and if T return the passed in form back to clog so that it can rendering.
Any ideas on why CLOG is rendering the passed unquoted form in the example above?
Beta Was this translation helpful? Give feedback.
All reactions