Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's idiomatic clojure for :use

Tags:

I've seen several different ways for :use in clojure--what's the idiomatic/preferred method?

#1

(ns namespace.core
  (:use [[something.core]
         [another.core]]))

or #2 EDIT: Use this with conjunction with :only.

(ns namespace.core
  (:use [something.core]
        [another.core]))

or #3

(ns namespace.core
  (:use [something.core
         another.core]))

or #4

(ns namespace.core
  (:use (something.core
         another.core)))

or #5 EDIT: This is idiomatic, but one should be using :use as in #2

(ns namespace.core
  (:use something.core
        another.core))