Skip to content

Instantly share code, notes, and snippets.

@arohner
Created February 13, 2010 00:15
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 arohner/303136 to your computer and use it in GitHub Desktop.
Save arohner/303136 to your computer and use it in GitHub Desktop.
(with-ns 'clojure.core
(defn require-short [ns]
(let [[whole base name] (re-find #"(.+)\.(.+)" (str ns))]
(require [(symbol whole) :as (symbol name)] :verbose))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment