Re: namespace :as vs :require

2015-06-08 Thread Matthew Boston
Here's a great post on the subject by Stuart Sierra: http://stuartsierra.com/2015/05/10/clojure-namespace-aliases - Matthew On Friday, June 5, 2015 at 9:33:32 PM UTC-6, Todd Stout wrote: What is considered idiomatic when using :as and :require in your namespace declarations? I understand

Re: namespace :as vs :require

2015-06-06 Thread Todd Stout
Yes, I should have said :refer, not :require. On Friday, June 5, 2015 at 11:09:37 PM UTC-5, Sean Corfield wrote: I think you mean :as vs :refer? The consensus is that using :as makes it easier to see where each symbol comes from when you're reading the code -- and avoids name conflicts

namespace :as vs :require

2015-06-05 Thread Todd Stout
What is considered idiomatic when using :as and :require in your namespace declarations? I understand that :as will require everything in the namespace to use symbol/fn syntax. The :require usage will mandate more verbose symbol references in the ns declaration, but your code in that namespace

Re: namespace :as vs :require

2015-06-05 Thread Sean Corfield
I think you mean :as vs :refer? The consensus is that using :as makes it easier to see where each symbol comes from when you're reading the code -- and avoids name conflicts between functions in different namespaces. If you use :refer, you lose that visibility. However, there are some symbols