Re: Can I refer all but specified symbols with 'ns' macro?

2013-08-02 Thread Anthony Grimes
Keep in mind that you should almost never do this. It's much better to require :as or explicitly refer which things you want from each namespace. When you do :refer :all, you pollute your namespace with tons of vars and when you use them, nobody has any clue where they're coming from so they

Re: Can I refer all but specified symbols with 'ns' macro?

2013-08-02 Thread Laurent PETIT
2013/8/2 Anthony Grimes disciplera...@gmail.com: Keep in mind that you should almost never do this. It's much better to require :as or explicitly refer which things you want from each namespace. When you do :refer :all, you pollute your namespace with tons of vars and when you use them, nobody

Re: Can I refer all but specified symbols with 'ns' macro?

2013-08-02 Thread Lee Spector
On Aug 2, 2013, at 9:16 AM, Laurent PETIT wrote: 2013/8/2 Anthony Grimes disciplera...@gmail.com: Keep in mind that you should almost never do this. It's much better to require :as or explicitly refer which things you want from each namespace. When you do :refer :all, you pollute your

Re: Can I refer all but specified symbols with 'ns' macro?

2013-08-02 Thread guns
On Fri 2 Aug 2013 at 04:32:32PM -0400, Lee Spector wrote: I can believe that these assertions are true in some (maybe many) programming contexts, but from other perspectives anything that requires you to type stuff that's not directly about the problem you're trying to solve or the idea

Can I refer all but specified symbols with 'ns' macro?

2013-08-01 Thread Yoshinori Kohyama
Hi group. Assumed that I want to refer 'baz, 'qux and etc and don't want to refer 'quux of 'bar namespace within my 'foo namespace. With 'ns' macro, I can require a namespace and refer all public symbols in it. (ns foo (:require [bar :refer :all])) I can refer only some specific symbols.

Re: Can I refer all but specified symbols with 'ns' macro?

2013-08-01 Thread Carlo Zancanaro
I think the way to do it is: (ns foo (:require [bar :refer :all :exclude (quux)])) On 1 August 2013 18:19, Yoshinori Kohyama yykohy...@gmail.com wrote: Hi group. Assumed that I want to refer 'baz, 'qux and etc and don't want to refer 'quux of 'bar namespace within my 'foo namespace.

Re: Can I refer all but specified symbols with 'ns' macro?

2013-08-01 Thread Yoshinori Kohyama
Carlo, Works fine. Thank you! Y. Kohyama -- -- 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