Conventions, Style, and Usage for Clojure Constants?

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

    The earmuffs are a way of denoting that a given symbol will have its own thread-local binding at some point. As such, it does not make sense to apply the earmuffs to your Pi constant.

    *clojure-version* is an example of a constant in Clojure, and it's entirely in lower-case.

提交回复
热议问题