Conventions, Style, and Usage for Clojure Constants?

前端 未结 8 1229
余生分开走
余生分开走 2021-02-02 06:48

What are the best practices for defining constants in Clojure in terms of style, conventions, efficiency, etc.

8条回答
  •  被撕碎了的回忆
    2021-02-02 07:31

    From http://dev.clojure.org/display/community/Library+Coding+Standards:

    Use earmuffs only for things intended for rebinding. Don't use a special notation for constants; everything is assumed a constant unless specified otherwise.

提交回复
热议问题