On Mar 24, 2009, at 1:01 PM, Tom Emerson wrote:
Hi all,
I'm getting an error I don't quite understand. Starting Clojure
(r1329) and entering
user> (ns foo (:use [clojure.contrib.zip-filter :as zf]))
Because you've used ":use", you are referring all of
clojure.contrib.zip-filter into foo.
The doc doesn't claim that :as works with use.
But it works well with require :
user> (ns foo (:require [clojure.contrib.zip-filter :as zf]))
HTH,
--
Laurent
2009/3/24 Tom Emerson
>
> Hi all,
>
> I'm getting an error I don't quite understand. Starting Clojure
> (r1329) and entering
>
> user>
Hi all,
I'm getting an error I don't quite understand. Starting Clojure
(r1329) and entering
user> (ns foo (:use [clojure.contrib.zip-filter :as zf]))
I get an exception,
java.lang.IllegalStateException: descendants already refers to:
#'clojure.core/descendants in namespace: foo (NO_SOURCE_FIL