Re: FAQ

2008-12-19 Thread MattyDub
+1 to Mon Key's suggestions. Those are very FAQ-like questions. -Matt On Dec 19, 12:45 am, Mon Key wrote: > Some thoughts on really stupid things that have tripped me up: > > - How do I exit Clojure - srsly > C-c > > - Whatsa JVM - does this mean Clojure is really just Java with parens? > > - W

Re: FAQ

2008-12-19 Thread Jason
Not sure if the FAQ is the right place to put it, but I haven't seen any mention of this "gotcha" which could really trip some people up: http://w01fe.com/?p=32 Short version: hashing "immutable" Clojure collections that contain mutable Java objects can lead to confusing results. (Hi all, I'm n

Re: FAQ

2008-12-19 Thread Mon Key
Some thoughts on really stupid things that have tripped me up: - How do I exit Clojure - srsly C-c - Whatsa JVM - does this mean Clojure is really just Java with parens? - Whatsa Classpath? this answer presents the *ALL* important opportunity to mention that *nix uses `:' to separate paths wher

Re: FAQ

2008-12-18 Thread Adrian Cuthbertson
> Suggestions for entries welcome here. > > > > Rich > Here's another that was a "gotcha" for me for an hour or two... Why after using map/reduce/for to change a java object does the object remain unchanged? (defn initv1 [myseq] (let [v (java.util.Vector.)] (for [x myseq] (.addElement v x)) v))

Re: FAQ

2008-12-18 Thread Daniel Eklund
> Suggestions for entries welcome here. > > Rich How about: What language constructs/objects may be found in the function position of an expression? Ii like the fact that sets, maps and vectors are all 'functions of their keys', and that keywords and symbols are functions of maps. ((([ + - ap

Re: FAQ

2008-12-18 Thread Rich Hickey
On Dec 18, 10:42 am, Stuart Sierra wrote: > On Dec 17, 6:28 pm, kkw wrote: > > > What's the recommended way of getting Clojure up and running? > > - Download the latest snapshot with SVN > > - Create the Clojure.jar file with Ant > > - Test by starting up the REPL with "java -cp clojure.jar >

Re: FAQ

2008-12-18 Thread Stuart Sierra
On Dec 17, 6:28 pm, kkw wrote: > What's the recommended way of getting Clojure up and running? > - Download the latest snapshot with SVN > - Create the Clojure.jar file with Ant > - Test by starting up the REPL with "java -cp clojure.jar > clojure.lang.Repl" That's a good FAQ suggestion, Kev. W

Re: FAQ

2008-12-17 Thread kkw
How about: What's the recommended way of getting Clojure up and running? - Download the latest snapshot with SVN - Create the Clojure.jar file with Ant - Test by starting up the REPL with "java -cp clojure.jar clojure.lang.Repl" Kev On Dec 18, 9:24 am, lpetit wrote: > Hello, > > > * Is there a

Re: FAQ

2008-12-17 Thread lpetit
Hello, > * Is there an IDE for Clojure? > > Answer: There are plug-ins for Eclipse clojure-dev/> and NetBeans .  There's also > Emacs. Sincerely, clojure-dev (Eclipse plugin) is still currently in infancy. I think it's not fair for the emacs ver

Re: FAQ

2008-12-17 Thread Meikel Brandmeyer
Hi, Am 17.12.2008 um 17:34 schrieb Stuart Sierra: * Is there an IDE for Clojure? Answer: There are plug-ins for Eclipse and NetBeans . There's also Emacs. There is also Vim. Sincerely Meikel smime.p7s Description: S/MIME cry

Re: FAQ

2008-12-17 Thread J. McConnell
On Wed, Dec 17, 2008 at 12:06 PM, Rich Hickey wrote: > On Dec 17, 11:50 am, "J. McConnell" wrote: >> On Wed, Dec 17, 2008 at 10:32 AM, Rich Hickey wrote: >> >> > The Clojure FAQ will be here: >> >> >http://code.google.com/p/clojure/wiki/FAQ >> >> > Suggestions for entries welcome here. >> >> I

Re: FAQ

2008-12-17 Thread Rich Hickey
On Dec 17, 11:50 am, "J. McConnell" wrote: > On Wed, Dec 17, 2008 at 10:32 AM, Rich Hickey wrote: > > > The Clojure FAQ will be here: > > >http://code.google.com/p/clojure/wiki/FAQ > > > Suggestions for entries welcome here. > > I recently found out about Google Moderator > (http://moderator.a

Re: FAQ

2008-12-17 Thread J. McConnell
On Wed, Dec 17, 2008 at 10:32 AM, Rich Hickey wrote: > > The Clojure FAQ will be here: > > http://code.google.com/p/clojure/wiki/FAQ > > Suggestions for entries welcome here. I recently found out about Google Moderator (http://moderator.appspot.com/), which might be a good fit here. From what I'

Re: FAQ

2008-12-17 Thread Chouser
On Wed, Dec 17, 2008 at 11:34 AM, Stuart Sierra wrote: > > Suggestions, based on common questions in the group: These are good, Stuart, thanks! Except... > * Why doesn't #([%]) work? > > Answer: Because it expands to "(fn [x] ([x]))". #() always assumes > that the thing inside it is a functio

Re: FAQ

2008-12-17 Thread Rich Hickey
On Dec 17, 11:34 am, Stuart Sierra wrote: > On Dec 17, 10:32 am, Rich Hickey wrote: > > > The Clojure FAQ will be here: > > >http://code.google.com/p/clojure/wiki/FAQ > > > Suggestions for entries welcome here. > > Suggestions, based on common questions in the group: > > * Is there a repositor

Re: FAQ

2008-12-17 Thread Stuart Sierra
On Dec 17, 10:32 am, Rich Hickey wrote: > The Clojure FAQ will be here: > > http://code.google.com/p/clojure/wiki/FAQ > > Suggestions for entries welcome here. Suggestions, based on common questions in the group: * Is there a repository for Clojure libraries? Answer: Yes, see http://code.googl