> Intentionally referring an entire namespace in and also aliasing it
> seems a very odd thing to do. The number of libs this change would
> break is very likely to be tiny and the breakage will be obvious and
> easy to fix.

I just ran into an instance where I might want to do just this.

I have a file really/long/namespace/util.clj with a bunch of
utilities, structs, and method definitions.  Following (what I gather
is) an accepted convention, these structs have a :class key that maps
to a namespace-qualified keyword.

Now, I have another file stuff.clj that builds upon all of the
contents of util.clj.  So, I want to :use util.clj, pulling in all of
its utilities, but I'd also like to be able to refer to its namespace-
qualified keywords with the alias ::util/keyword rather
than :really.long.namespace.util/keyword.   Is there a way for me to
do this under your proposal?

(Maybe my potential setup is a bad idea, I don't know ... anyway, the
situation reminded me of this thread so I thought I'd mention it).

Other than this possible (very minor) snag, I very much like the
proposals in this thread.

-Jason







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

Reply via email to