> Can you build in a way to get :require :refer :all to work on a bunch of 
> sub-namespaces together on one line, as one currently can with :use, without 
> listing each namespace completely on a separate line with a separate :refer 
> :all?

Certainly. I'm not saying this is how the exact syntax would go, but the 
general idea is to rely on the keywords to specify what (and how) you want to 
import stuff:

Instead of:

(ns one.fresh-server
  (:use (core matrix math bs))

You could do something like:

(ns one.fresh-server
  [core :refer-all [matrix math bs]])

By having a single syntax (vectors), it becomes really simple to learn how to 
use the new "ns" (or "ns-include", w/e) declaration. (doc ns) would need to 
spend almost no time on syntax, and just explain the various possible keywords. 
I think this might also make it a lot simpler for editors and IDEs to integrate 
with Clojure.

Summary:

- Just one syntax to know: vectors
- Keyword options handle everything else

Cheers!
- Greg

--
Please do not email me anything that you are not comfortable also sharing with 
the NSA.

On Aug 5, 2013, at 12:32 PM, Lee Spector <lspec...@hampshire.edu> wrote:

> 
> On Aug 5, 2013, at 12:28 PM, Greg wrote:
> 
>> Branching off of the "Can we please deprecate the :use directive ?" thread, 
>> I was wondering what the Clojure community thinks of radically simplifying 
>> the "ns" declaration while keeping all of its power.
> 
> Can you build in a way to get :require :refer :all to work on a bunch of 
> sub-namespaces together on one line, as one currently can with :use, without 
> listing each namespace completely on a separate line with a separate :refer 
> :all?
> 
> -Lee
> 
> -- 
> -- 
> 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/groups/opt_out.
> 
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to