On Jun 22, 2015, at 2:39 PM, Ritchie Cai <ritchie...@gmail.com> wrote:
> Ok, so require without :refer will default to :refer :all?

No.

>> (:use [clojure.java.io]) is equivalent to (:require [clojure.java.io :refer 
>> :all])

There’s no :as here. :use is like :require :refer :all.

>> (:use [clojure.java.io :as io]) is equivalent to (:require [clojure.java.io 
>> :as io :refer :all]) 

There’s an :as in both here. :use :as is like :require :as :refer :all

Both :use and :refer :all (in :require) are discouraged because they pollute 
your namespace with every symbol from the used/required namespace.

There’s not much point in specifying an alias (with :as) for :use or :require 
:refer :all since those bring in every symbol directly anyway.

Sean Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)



-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to