On Wed, Sep 8, 2010 at 7:28 AM, CuppoJava <patrickli_2...@hotmail.com> wrote: > I found the easiest way to introduce macros is just to introduce them > as small syntactic sugaring. For example, getting rid of the explicit > (fn [] ...) for macros like (with-open file ...).
Interesting. I don't see any real difference between macros and C preprocessor stuff and C++ templates at a conceptual level. I think Clojure macros are much cleaner, but essentially they are similar. So in the Java world, generics (templates) are not yet widely used outside the libraries and maybe that's why Java devs find macros hard to comprehend? -- Sean A Corfield -- (904) 302-SEAN Railo Technologies, Inc. -- http://getrailo.com/ An Architect's View -- http://corfield.org/ "If you're not annoying somebody, you're not really alive." -- Margaret Atwood -- 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