Reader macros are expanded by the reader, "regular" macros are expanded by the compiler. The reader is what translates the text strings that you have typed into Clojure data structures, the compiler translates those data structures into executable code. Clojure does not allow you to define custom reader macros currently, but as you may be able to see with the builtin reader macros, these are what would allow you to change that actual core syntax of the language. Compiler macros, while extremely powerful, operate on Clojure data structures, and do not allow you to change the actual syntax of the language in the way that reader macros do.
On Thu, Dec 1, 2011 at 7:02 PM, Julien Chastang <julien.c.chast...@gmail.com> wrote: > Are reader macros and "regular" macros handled differently by the > compiler? If possible, please give some contrasting details about what > the compiler is doing in each case. > > -- > 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 -- 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