A guide to the `ns` form (namespaces)


#1

The Clojure ns macro form is used at the top of Clojure files to set up the namespace, including all required namespaces. It’s super common (basically at the top of every file), so it’s important to know how to use them.

How filenames relate to namespace names

This is dealt with in the clojure.test course but I can break it out.

  • :thumbsup: Yes, please teach this!
  • :thumbsdown: No, I’m not interested.

0 voters

Importing Java classes

  • :thumbsup: Yes, please teach this!
  • :thumbsdown: No, I’m not interested.

0 voters

:require directives (very common) with the options

  • :thumbsup: Yes, please teach this!
  • :thumbsdown: No, I’m not interested.

0 voters

ClojureScript special forms

  • :thumbsup: Yes, please teach this!
  • :thumbsdown: No, I’m not interested.

0 voters

Please vote. Comments are encouraged!