On 23.05.2009, at 02:13, Mark Engelberg wrote:

> OK, after looking at deftemplate with macroexpand, it's starting to
> make more sense.  I suppose one downside to this versus load is that
> it's probably much more difficult to debug (just because all your code
> is wrapped in a macro), but basically I like the idea.

Right, debugging is always a bit more difficult with macros. Ideally,  
you'd have debugged most of the functions before wrapping them into a  
template.

I have added deftemplate to clojure.contrib.macro-utils. I found that  
it is quite useful for lightweight macro programming: for very simple  
macros, it is easier to use than the standard templating mechanism  
with syntax-quote. I plan to add gensym support when I find the time.

Konrad.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to