Re: Pre-expansion macro form

2010-12-05 Thread Brian Marick
On Dec 5, 2010, at 3:32 PM, Alex Osborne wrote: >> >> Is there any way to get the original call form? Something like &env? Some >> hook into the reader? > > Try &form I should have guessed. Thanks. - Brian Marick, Artisanal Labrador Contract programming in Ruby and Clojure Author of /Ri

Re: Pre-expansion macro form

2010-12-05 Thread Alex Osborne
Brian Marick writes: > Is there any way to get the original call form? Something like &env? Some > hook into the reader? Try &form -- 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 t

Pre-expansion macro form

2010-12-05 Thread Brian Marick
Suppose that 'future-fact' is a macro. Its declaration is this: (defmacro future-fact [& forms] ... Here's a use of the macro: (future-fact "some text" (+ 1 2)) The metadata on the (+ 1 2) form will contain the line number. However, consider this: (future-fact "some text") Strings don't get