difference between use and require

后端 未结 4 2090
自闭症患者
自闭症患者 2020-11-28 03:19

Can anyone explain the difference between use and require, both when used directly and as :use and :require in the

4条回答
  •  清酒与你
    2020-11-28 04:05

    require loads libs (that aren't already loaded), use does the same plus it refers to their namespaces with clojure.core/refer (so you also get the possibility of using :exclude etc like with clojure.core/refer). Both are recommended for use in ns rather than directly.

提交回复
热议问题