Re: with-gensyms

2008-11-20 Thread Stuart Sierra
On Nov 20, 4:18 pm, Rock <[EMAIL PROTECTED]> wrote: > Another question: I was wondering why there seem to be no macrolet or > symbol-macrolet macros in the language. Is it part of the language > design or will they be added in future releases? It's been discussed, but not implemented: http://grou

Re: with-gensyms

2008-11-20 Thread Stephen C. Gilardi
On Nov 20, 2008, at 4:18 PM, Rock wrote: > Another question: I was wondering why there seem to be no macrolet or > symbol-macrolet macros in the language. Is it part of the language > design or will they be added in future releases? Rich misses symbol-macrolet too: http://clojure-log.n

Re: with-gensyms

2008-11-20 Thread Rock
Well, I'm no Clojure macro expert yet, that's for sure, but from what I gather the auto-gensym mechanism has limitations to some extent, so that using regular gensyms in certain cases appears to be mandatory. So, I figured, something like good old WITH-GENSYMS could come in handy. I

Re: with-gensyms

2008-11-20 Thread Rock
08 pm, Meikel Brandmeyer <[EMAIL PROTECTED]> wrote: > Hi Rock, > > Am 20.11.2008 um 20:58 schrieb Rock: > > > Peter Seibel's Practical Common Lisp: > > You might want to look at Stuart Halloway's "PCL->Clojure" > series:http://blog.thinkrele

Re: with-gensyms

2008-11-20 Thread Meikel Brandmeyer
Hi Rock, Am 20.11.2008 um 20:58 schrieb Rock: Peter Seibel's Practical Common Lisp: You might want to look at Stuart Halloway's "PCL->Clojure" series: http://blog.thinkrelevance.com/2008/09/16/pcl-clojure (defmacro with-gensyms [[& names] form] `(let ~(apply v

Re: with-gensyms

2008-11-20 Thread Allen Rohner
Here's my attempt at writing a version of WITH-GENSYMS for > Clojure, taken directly from Peter Seibel's Practical Common Lisp: > > (defmacro with-gensyms [[& names] form] >   `(let ~(apply vector (loop [n names result []] >                

with-gensyms

2008-11-20 Thread Rock
I've done my best to get a good enough grasp of how macros and syntax- quotes work in Clojure. While waiting for some more detailed documentation (thanks Meikel), I thought I'd work on something practical. Here's my attempt at writing a version of WITH-GENSYMS for Clojure, take