thanks. That sounds like a great answer, too. I thought about the
precedent Java started, but they also put the parentheses in the wrong
place, right :) ? And pretty it may be, but think about the free metaphor
you get by making it slashes. You are inviting beginners into the language
("This is
thank you for that nice explanation. It gets to the motivation ... the
problem . . . the solution.
So (to test my understanding), "use" makes symbols in another namespace part
of your namespace (adding them to your map). Then when others 'deal'
(require or use) your namespace, that stuff you 'us
On Jan 23, 2009, at 8:21 PM, e wrote:
Ah hah! I finally understand something. See this is what would
really help in the explanation. Something like, "In Java, each file
defines only a single outer class, which must have the same name as
the file. This simple approach means that there i
On Jan 23, 2009, at 7:12 PM, e wrote:
first explicit question: after the example lib and the bullets, I
don't see why there are two different keywords, "use" and
"require". Just look at the start of the sentences. They are
identical. Why not just pick one of the two keywords and let "on
>
> Ah hah! I finally understand something. See this is what would really
> help in the explanation. Something like, "In Java, each file defines only a
> single outer class, which must have the same name as the file. This simple
> approach means that there is never any confusion that the last s
On Fri, Jan 23, 2009 at 7:33 PM, Matt Moriarity wrote:
>
> 1) "use" and "require" differ in that use does what require does,
> loads a library, but it also refers to the symbols in that lib in the
> current namespace. So essentially if you want to use
> clojure.contrib.def/defvar, if you (require
1) "use" and "require" differ in that use does what require does,
loads a library, but it also refers to the symbols in that lib in the
current namespace. So essentially if you want to use
clojure.contrib.def/defvar, if you (require 'clojure.contrib.def), you
would have to say (clojure.contrib.def
third: are there nested namespaces? I still don't really understand how to
organize a project . . .best practices (and why they are the best practices)
. . . whether or not there is actually any hard in having each lib just be
one file.
Thanks.
On Fri, Jan 23, 2009 at 7:17 PM, e wrote:
> seco
second: since the namespace is used in code with slashes, why was it decided
that it should have dots in the declaration/introduction? That's just
confusing as far as I can tell. It's probably way too late to debate
something like that, but maybe there's an "ah hah" reason.
On Fri, Jan 23, 2009
first explicit question: after the example lib and the bullets, I don't see
why there are two different keywords, "use" and "require". Just look at the
start of the sentences. They are identical. Why not just pick one of the
two keywords and let "only" be a modifier when you want only certain th
sure. Thanks for the reference.
On Fri, Jan 23, 2009 at 5:41 PM, Stephen C. Gilardi wrote:
>
> On Jan 23, 2009, at 4:54 PM, e wrote:
>
> [lots of stuff]
>
>
> Would you please take a look at the text and example at
> http://clojure.org/libs and ask questions about anything you don't
> understand
On Jan 23, 2009, at 4:54 PM, e wrote:
[lots of stuff]
Would you please take a look at the text and example at http://clojure.org/libs
and ask questions about anything you don't understand in it? Once
you understand libs (through reading and asking questions here), I
think it will make l
Hi
I don't really get namespaces, and, yes, I looked at
http://clojure.org/namespaces
. . . but was lost at "interned" (thinking about this more, I think I
know what it means ... perhaps a link to a definition would work). Is
it like C++ where it doesn't matter what subdirectory a file is in ..
13 matches
Mail list logo