On Sat, Apr 2, 2011 at 4:30 PM, icemaze <[email protected]> wrote:
> I'm writing a macro that defines a symbol through let, but I also
> needs to unbind (unlet?) it, so that further uses of that symbol throw
> an exception.

Design things in the functional way, and the let's close parenthesis
will do that for you.

Otherwise, you've got some weird scoping, where you want it to work
for part of a let's body and then not work in the rest of that let's
body. I'd try hard to design it not to do that; so the let's body
corresponded exactly to the desired scope of the symbol's validity.
Failing that the macro will have to rewrite the code, e.g. to replace
the symbol with something invalid past a certain point in the let
body.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to