Skip to content

Instantly share code, notes, and snippets.

@brianstorti
Created June 8, 2013 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianstorti/5735905 to your computer and use it in GitHub Desktop.
Save brianstorti/5735905 to your computer and use it in GitHub Desktop.
Clojure `require` and `use`
; 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