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
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
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
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
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
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 []]
>
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