[TMACRO-2] protect let-bound symbols from macrolet expansion Created: 26/Nov/12 Updated: 27/Nov/12 Resolved: 27/Nov/12
|Reporter:||Tom Jack||Assignee:||Konrad Hinsen|
|Patch:||Code and Test|
As discussed here: https://groups.google.com/d/msg/clojure-dev/-/UheAzkyI_WcJ
Patch macrolet-protect.diff fixes the issue and provides a test.
|Comment by Tom Jack [ 26/Nov/12 2:55 PM ]|
D'oh, patch macrolet-protect.diff has a bug — it doesn't macroexpand-1 if the symbol is protected.
|Comment by Tassilo Horn [ 27/Nov/12 1:38 AM ]|
This patch supersedes Tom's patch as discussed on the clojure-dev mailinglist. See
The patch also adds letfn* as a form introducing protected symbols. That one was completely missing.
I added test cases for both let as well as letfn.
|Comment by Konrad Hinsen [ 27/Nov/12 8:40 AM ]|