On Saturday, August 20, 2016 at 2:32:29 AM UTC-5, Colin Fleming wrote:
>
> (ns ... (require ...) (import ...) )  instead of (ns ... (:require ...) 
>> (:import ...) )
>
>
> Is this not intended to be allowed? The docstring implies no but it has 
> always worked fine - I wouldn't call the code broken.
>

It has never been intended to work and afaik there is no documentation that 
would lead you to believe it should.
 

>
> Does the spec also limit the refs 
> to refer-clojure/require/use/import/load/gen-class rather than allowing, 
> say, println? One not on that list that I have seen people using in the 
> wild is refer.
>

Yes - it is limited (you can read the ns spec 
at 
https://github.com/clojure/clojure/blob/master/src/clj/clojure/core/specs.clj#L187).
 
refer is included. While it's not explicitly listed in the docstring its 
use is implied (by :refer-clojure) so I ended up including it.
 

-- 
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