I see. That section is just horribly written, calling something a macro
when it isn't one yet. Here's my thinking in **bold**, inlined.
Simple Macro
If you understand the reader and evaluator, there actually isn't all that
much more to understand about the operation and creation of macros, for
You are right. Keep reading a bit and it says "But as we defined
pointless above, it is just a regular function, not a macro."
And you can verify the pointless macro using macro-expand as shown
later.(macroexpand '(pointless (+ 3 5)))=> (+ 3 5)
On Jan 6, 11:12 am, Andrew wrote:
> http://en.wikibo
On Fri, Jan 6, 2012 at 11:12 AM, Andrew wrote:
> http://en.wikibooks.org/wiki/Learning_Clojure/Macros
>
> The page says the following:
>
> (def pointless (fn [n] n))
>
> "Whatever is passed to this macro---a list, a symbol, whatever---will be
> returned unmolested and then evaluated after the call
http://en.wikibooks.org/wiki/Learning_Clojure/Macros
The page says the following:
(def pointless (fn [n] n))
"Whatever is passed to this macro---a list, a symbol, whatever---will be
returned unmolested and then evaluated after the call. Effectively, calling
this macro is pointless:"
(pointles