当我有与独立于其参数的函数相关的数据时,我应该在什么时候支持块封装而不是本地封装?
我什么时候应该使用:
(let [hello "Hello "]
(defn do-greet
"Print a greeting."
[name]
(println (str hello name))))
相对:
(defn do-greet
"Print a greeting."
[name]
(let [hello "Hello "]
(println (str hello name))))