Last active
December 22, 2015 07:39
-
-
Save opqdonut/6439400 to your computer and use it in GitHub Desktop.
What the ns macro does
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
(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