On Sat, 2011-11-19 at 08:15 -0800, Andrew wrote:
> (Import only function bar from
> library foo - renaming foo to f - requiring my own code to say f/bar and
> ensuring that foo/baz and f/baz and baz don't work since baz is not
> imported?)
You can't do this within the confines of an ns form; it
And how can I get what I originally wanted? (Import only function bar from
library foo - renaming foo to f - requiring my own code to say f/bar and
ensuring that foo/baz and f/baz and baz don't work since baz is not
imported?)
--
You received this message because you are subscribed to the Goog
Sure, just remove the :as argument:
(ns example.ns
(:use [clojure.string :only (join)])
On Friday, November 18, 2011, Andrew wrote:
> Oh, thanks. Is there a way to "import" some functions and not others such
that the others cannot be used at all?
>
> --
> You received this message because you
Oh, thanks. Is there a way to "import" some functions and not others such
that the others cannot be used at all?
--
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 m
The :as clause establishes an alias for the entire clj-webdriver.core
namespace. The value of :only lists the vars from that namespace that are
referred into my-proj.core, which you can use without qualification e.g.
`(attribute …)` will work, but `(start …)` won't. Both `(cw/attribute …)` and
I'm surprised that I can do the following. Am I wrong about namespaces?
1. M-x clojure-jack-in
2. at the repl, execute (ns my-proj.core)
3. compile my core.clj (see ns snippet below)
4. back in the repl, use a function from a library that wasn't included
in the :only clause from my