Chapter 4
What are the two ways to quote expressions so the code can be manipulated later?
One way is to enclose an expression with :( and ). Another way is to put the code between quote and end keywords. In general, a quote block is used for multiline expressions.
In which scope does the eval function execute the code on?
The eval function evaluates the code in the global scope. So, if it is used from a function inside a module, then the code that is evaluated will be within the scope of the module.
How do we interpolate physical symbols into quoted expressions rather than being misinterpreted as source code?
To interpolate symbols into quoted expressions, create a QuoteNode object and interpolate that object normally.
What is the naming ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access