clj-commons / potemkin

some ideas which are almost good
577 stars 53 forks source link

adds support for renaming to import-vars #47

Open tomconnors opened 8 years ago

tomconnors commented 8 years ago

This implements the changes mentioned in #46 for import-vars. Example:

(macroexpand-1 '(potemkin.namespaces/import-vars [clojure.data foo bar [qux frob]]))
;; =>  
(do (potemkin.namespaces/import-def clojure.data/foo foo) 
    (potemkin.namespaces/import-def clojure.data/bar bar) 
    (potemkin.namespaces/import-def clojure.data/qux frob))