Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@opqdonut
Last active December 22, 2015 07:39
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 opqdonut/6439400 to your computer and use it in GitHub Desktop.
Save opqdonut/6439400 to your computer and use it in GitHub Desktop.
What the ns macro does
(pprint (macroexpand-1 '(ns foo (:use a) (:require b) (:import c))))
==>
(do
(clojure.core/in-ns 'foo)
(clojure.core/with-loading-context
(clojure.core/refer 'clojure.core)
(clojure.core/use 'a)
(clojure.core/require 'b)
(clojure.core/import 'c)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment