Created
June 8, 2013 17:13
-
-
Save brianstorti/5735905 to your computer and use it in GitHub Desktop.
Clojure `require` and `use`
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; with "require", I need to use the namespace-qualified name | |
(require 'examples.foo) | |
("bar" examples.foo/function-name) | |
; I can use "refer" to avoid that | |
(require 'examples.foo) | |
(refer 'examples.foo) | |
("bar" function-name) | |
; or I can use "use", that will do both the steps for me | |
(use 'examples.foo) | |
("bar" function-name) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment