On Mon, Feb 7, 2011 at 10:06 PM, CuppoJava <patrickli_2...@hotmail.com>wrote:
> I've thought about that actually. And it wouldn't work. > > So (defn destructure [form value] > ...magic...) > > (defmacro let [forms body] > `(let* ~(vec (destructure forms body)) <- at this point, "body" is > not known yet. It's just a symbol. > ~@body) > > This approach won't work because "body" is only a symbol within the > macro. We don't know it's value until runtime. > > -Patrick What you want isn't really that simple at all. What you're asking for is basically a halfway step towards unification. David -- 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