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 <ache...@gmail.com> 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. Effectively, calling > this macro is pointless:" > > (pointless (+ 3 5)) ; pointless returns the list (+ 3 5), which is then > evaluated in its place(+ 3 5) ; may as well just write this > instead > > But actually, doesn't (+ 3 5) get evaluated *before *pointless ever sees it? > Or am I mistaken?
-- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en