On Aug 13, 2009, at 5:30 PM, Bradbev wrote:
>>> More complex "reader" macros could be (infix x + y + z / 3). >> >> I think you can already do that with regular macros. > > I don't think so. Macros are invoked after the read stage but before > evaluation of arguments. This kind of macro would be invoked without > the text going through any kind of reader expansion. Isn't reader expansion exactly what you don't want? user> (defmacro infix [& args] `(quote ~args)) #'user/infix user> (infix 3 + 4 * 7) (3 + 4 * 7) I don't understand what's stopping anyone from implementing the body of that macro to make it actually implement infix arithmetic. — Daniel Lyons --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---