Conventions, Style, and Usage for Clojure Constants?

前端 未结 8 1224
余生分开走
余生分开走 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:28

    According to the "Practical Clojure" book, it should be named *pi*

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题