Re: Clojure 1.0

2009-05-04 Thread Santanu
Finally I think I have found a practical Lisp I can devote myself to. Hoping for great times ahead. Thanks again for the release. Regards, Santanu Chatterjee --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cloj

Re: Why does this not work?

2009-05-01 Thread Santanu
the clj files in clojure.jar, but could not. Instead I found this: -- static final Symbol FN = Symbol.create("fn*"); -- So I guess these are directly written in Java. Regards, Santanu --~--~-~--~~~---~--~~ You received this message because you ar

Re: Why does this not work?

2009-05-01 Thread Santanu
On May 2, 12:28 am, Michael Wood wrote: > > user=> (macroexpand-1 '(#(%1 %2) 1 2)) > ((fn* [p1__1 p2__2] (p1__1 p2__2)) 1 2) Oops! I forgot about macroexpand. I should have tried that first. What does the * in fn* mean? I tried (doc fn*) but got an error i

Re: Why does this not work?

2009-05-01 Thread Santanu
On May 2, 12:27 am, CuppoJava wrote: > #(%1 %2) is equivalent to writing (fn [a b] (a b)) Ah.. I see. Thanks. -Santanu --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to thi

Why does this not work?

2009-05-01 Thread Santanu
Hi Everybody, Why does this work: - user> ((fn [a b] a b) 1 2) 2 - But this doesn't: - user> (#(%1 %2) 1 2) java.lang.ClassCastException: java.lang.Integer cannot be cast to clojure.lang.IF - Regar

Re: how do I create a runnable clojure program

2009-04-29 Thread Santanu
do it. 1. I created a simple test2.clj file in my $HOME: --- (ns test2 (:gen-class)) (defn -main [& args] (println "Hello, world of Clojure!")) 2. I started a clojure REPL, from a terminal: sant...@lenny:~

how do I create a runnable clojure program

2009-04-29 Thread Santanu
le. I also don't know how to use ant (is that required?). I know javac can be applied on a .java file to get a .class file... but I dunno what applies to a .clj file? Kindly suggest how do I do this. Any pointer(s) to a suitable online article would be great. Thanks in advance for your help.

Re: Please suggest a way to learn just enough Java for Clojure

2009-03-31 Thread Santanu
e a comprehensive intro. Once I go through this once, I hope I will be able to read _and_ understand the Java API. Regards, Santanu Chatterjee --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" grou

Please suggest a way to learn just enough Java for Clojure

2009-03-30 Thread Santanu
I am having problems exploring the various functions in the Java libraries. Could you please suggest any Java book (and the relevant chapters) that will teach me _just_enough_ Java so that I can understand how to use the Java library documentation effectively. Thanks in advance. Regards, Sa

Please suggest a way to learn just enough Java for Clojure

2009-03-30 Thread Santanu
d you please suggest any Java book (and the relevant chapters) that will teach me _just_enough_ Java so that I can understand how to use the Java library documentation effectively. Thanks in advance. Regards, Santanu Chatterjee --~--~-~--~~~---~--~~ You received