【发布时间】:2013-03-31 17:09:18
【问题描述】:
在with-local-var的文档中
varbinding=> symbol init-expr
Executes the exprs in a context in which the symbols are bound to
vars with per-thread bindings to the init-exprs. The symbols refer
to the var objects themselves, and must be accessed with var-get and
var-set
但是为什么thread-local? 返回假?
user=> (with-local-vars [x 1] (thread-bound? #'x))
false
【问题讨论】:
标签: clojure