2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

名前空間の循環参照はできない

Last updated at Posted at 2012-03-16
foo.clj
(ns foo
  (require [bar]))
bar.clj
(ns bar
  (require [foo]))

これはできない。slime で継ぎ足し継ぎ足し評価しているとエラーに気付きにくい。
nsマクロの後に in-ns と declare 関数でできそうな気もするがトリッキーなのでやっていない。
循環参照が起きる時点で名前空間の分け方がおかしいのかもしれない。

Cyclic load dependency - Clojure | Google グループ

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?