Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
バインドされていない状態で始まる動的変数があるとしましょう:
(def ^:dynamic *config-param*)
その後、次のように設定します。
(alter-var-root #'*config-param* (constantly 42)))
しかし、今、バインドを解除したいと思います (おそらくテスト目的で)。どうすればいいのですか?
(注: 私は動的変数の使用を推奨しているわけではありません! ただ質問しているだけです.)
.unbindRoot次のように使用します。
.unbindRoot
(.unbindRoot #'*config-param*)