I search on JIRA, but as far as I know there is no issue discussed in
this thread.
Is it an issue that (resolve 'clojure.core) throws an exception?
Thanks.
--
Name: OGINO Masanori (荻野 雅紀)
E-mail: masanori.og...@gmail.com
--
You received this message because you are subscribed to the Google
2011/7/14 OGINO Masanori masanori.og...@gmail.com:
Hello.
What is the right way to display namespace docstrings?
One day, as usual, I typed:
(doc 'clojure.core) ; or other namespace
Then the REPL said clojure.lang.Cons cannot be cast to clojure.lang.Symbol.
I thought Ah, I know
On Jul 15, 3:10 pm, Rasmus Svensson r...@lysator.liu.se wrote:
2011/7/14 OGINO Masanori masanori.og...@gmail.com:
Hello.
What is the right way to display namespace docstrings?
One day, as usual, I typed:
(doc 'clojure.core) ; or other namespace
Then the REPL said clojure.lang.Cons
Hello.
Thank you for giving your opinion, Rasmus.
Indeed, (doc doc) says, I am for a var or special form.
However, according to (source doc), there is some code for namespace,
and this code won't be used since (ns-resolve) breaks its promise.
Moreover, with 1.2.1, (doc) uses
Hello.
What is the right way to display namespace docstrings?
One day, as usual, I typed:
(doc 'clojure.core) ; or other namespace
Then the REPL said clojure.lang.Cons cannot be cast to clojure.lang.Symbol.
I thought Ah, I know, the message means (quote clojure.core) cannot
be cast
: or write a patch :?)
On Jul 14, 11:46 am, OGINO Masanori masanori.og...@gmail.com wrote:
Hello.
What is the right way to display namespace docstrings?
One day, as usual, I typed:
(doc 'clojure.core) ; or other namespace
Then the REPL said clojure.lang.Cons cannot be cast
Hello.
MHOOO, thank you.
Sorry, for long time I haven't used 1.2, so I forgot checking 1.2.1!
Yes, I use 1.3b1. Sorry for my unkindness.
Since I haven't sent a CA yet, maybe it's not time to send a patch.
However, IMO it's not an issue of (resolve), because (resolve) throws
even if 1.2.1 and
Well, with my solution, namespace's docstring is shown when the same
name exists both in vars and namespaces.
So it seems better to remain (doc) and wrap the body of (ns-resolve) by
(try
...
(catch Exception e nil))
because (ns-resolve) docstring says else nil, though it actually
throws an
Hi,
Am 27.02.2009 um 08:20 schrieb Konrad Hinsen:
I have been trying in vain to get the namespace docstring of anything
with print-namespace-doc. It doesn't say what exactly it wants as an
argument (a symbol, a string, or a namespace object), but it calls
ns-name, which wants a symbol, so I
I have been trying in vain to get the namespace docstring of anything
with print-namespace-doc. It doesn't say what exactly it wants as an
argument (a symbol, a string, or a namespace object), but it calls
ns-name, which wants a symbol, so I give it a symbol. But the symbol
doesn't have
10 matches
Mail list logo