> First, I suggest that you look at the standard clojure.java.io package for > some useful functions that are already in Clojure 1.2. In particular, you > could use io/file instead of (File. xxx) in your code to add some > flexibility to the kinds of things that can be treated as a "file". I think > io/file could replace your fs/join. Also, io/copy is very flexible so it's > worth a look, too. > > Yeah, I wasn't aware of the many things in clojure.java.io (used just reader from there). I do plan switch to clojure.java.io soon.
> Second, fs is using a singe segment namespace. I remember that there have > been some cautions against doing that. (But not everyone agrees.) My > understanding is that it's best for Java interop to have a multi-segment > namespace. (Reference links below.) > (and many other mails in this thread). Coming from a Python background, single segment namespaces are natural to me and have never been a problem. I added :gen-class and ran "lein compile" and it worked, so I don't see a problem here as well. Changing it to com.mikitebeka.fs or lazy1.fs has too much of an ego trip for me :) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en