Re: Namespace Docstrings?

2011-07-19 Thread OGINO Masanori
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

Re: Namespace Docstrings?

2011-07-15 Thread Rasmus Svensson
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

Re: Namespace Docstrings?

2011-07-15 Thread Alan Malloy
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

Re: Namespace Docstrings?

2011-07-15 Thread OGINO Masanori
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

Namespace Docstrings?

2011-07-14 Thread OGINO Masanori
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

Re: Namespace Docstrings?

2011-07-14 Thread MHOOO
: 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

Re: Namespace Docstrings?

2011-07-14 Thread OGINO Masanori
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

Re: Namespace Docstrings?

2011-07-14 Thread OGINO Masanori
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

Re: namespace docstrings

2009-02-27 Thread Meikel Brandmeyer
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

namespace docstrings

2009-02-26 Thread 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 give it a symbol. But the symbol doesn't have