等同于 'var' 的 clojurescript 是什么?

what is the clojurescript equivalent to 'var'?

在 clojure 中,(var some-function)#'some-function 是等价的。

var 的 clojurescript 等价物是什么?

ClojureScript 也有 var 作为一种特殊形式。而且,在 ClojureScript 中 (var foo)#'foo 是等价的。

话虽如此,与 Clojure 相比,ClojureScript 的 var 有点受限:

Vars are not reified at runtime. When the compiler encounters the var special form it emits a Var instance reflecting compile time metadata. (This satisfies many common static use cases.)

(摘自Differences from Clojure。)