Hello,
function -main is a regular function, so the following works :
"
$ echo "(ns test (:gen-class)) (defn -main [] (println 1))" > test.clj
$ java -cp clojure.jar clojure.main -i test.clj -e "(test/-main)"
1
"
HTH,
--
Laurent
2009/4/8 Mark Reid
>
> Hi Laurent,
>
> Thanks for the feedback
Hi Laurent,
Thanks for the feedback regarding namespaces. That's exactly the sort
of thing I wasn't sure I was doing correctly.
I currently don't use an IDE that automatically compiles files so
wasn't aware of that problem. I prefer the solution that defines a
main method. My only question now i
Hello Mark,
That's interesting, keep us informed of your progress!
Since you say you welcome any feedback, here are my remarks :
* namespace names: you could maybe use more qualified names, e.g.
qualifying them maybe with your own reversed namespace ( vec -> com.reid.vec
). Indeed, one of the i
Hi,
In the interests of learning Clojure I thought it would be fun to port
the Minilight renderer to Clojure and write about the steps along the
way. If you're interested you can have a look at my first post here:
http://mark.reid.name/sap/minilight-clojure-vectors.html
I've not programmed i