Hi Randall, Seems the general consensus is that there is nothing inherently bad with such a design.
The idea of macros is to give you the power to generate code from commonly occurring templates. Emitting multiple def forms certainly falls under this umbrella. /mike. On Mon, Dec 15, 2008 at 9:52 AM, Randall R Schulz <rsch...@sonic.net> wrote: > > Hi, > > I'm wondering whether it's a good idea to create a defsomething -style > macro that establishes multiple root bindings? In other one, a macro > that expands to multiple (def ...) forms? > > The first thing I noticed when I did this is that (barring further > machinations within the macro) it evaluates to only the last Var that > was defined. > > > Randall Schulz > > > > --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---