What are common conventions for using namespaces in Clojure?

前端 未结 2 1417
梦如初夏
梦如初夏 2020-12-02 10:38

I\'m having trouble finding good advice and common practices for the use of namespaces in Clojure. I realize that namespaces are not the same as Java packages so I\'m tryin

2条回答
  •  [愿得一人]
    2020-12-02 10:52

    1. Strictly speaking, not necessary, though many Java projects have dropped that convention as well, especially for internal projects or private APIs. Do avoid single-segment namespaces though, which would result in classfiles being generated in the default package.
    2. Yes.

    Regarding 3 & 4, packaging and AOT compilation are entirely orthogonal to the question of namespace conventions.

提交回复
热议问题