difference between use and require

后端 未结 4 2111
自闭症患者
自闭症患者 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 03:52

    As has been mentioned the big difference is that with (require 'foo), you then refer to names in the lib's namespace like so: (foo/bar ...) if you do (use 'foo) then they are now in your current namespace (whatever that may be and provided there are no conflicts) and you can call them like (bar ...).

提交回复
热议问题