Brian Craft <craft.br...@gmail.com> writes:

> For example, I have a project with rather modest requirements, one of them 
> being abstract path manipulation. In javascript:
>
> path.normalize(path.join("one", "two", "..", "three"))
> 'one/three'
>
> ruby:
>
> irb(main):003:0> Pathname.new("one") + "two" + ".." + "three"
> => #<Pathname:one/three>
>
> python:
>
>>>> os.path.normpath(os.path.join("one", "two", "..", "three"))
> 'one/three'
>
> In clojure, people recommend me.raynes.fs:
>
> => (fs/file "one" "two" ".." "three")
> #<File /inside/home/craft/cavm/one/two/../three>
>
> ugh. 
>
> => (fs/normalized-path (fs/file "one" "two" ".." "three"))
> #<File /inside/home/craft/cavm/one/three>
>
> um, no. Turns out there is no abstract path join + normalization in 
> me.raynes.fs. I haven't found an alternative in clojure.
>
> This is trivial to work around, but I hit this kind of thing constantly 
> with every clojure library I use: clojure libraries are about 70% 
> implemented, and 90% correct, which makes a weak foundation. I was amused 
> to find the Lisp Curse article a few weeks ago, which describes this 
> situation. It's often easier to write something from scratch than to patch 
> one of the partially-implemented libraries. But this scales poorly, and one 
> is truly starting from zero with clojure.


One of the interesting questions, I think, is the embrace the host
notion. One solution to the problems you describe is to just use the
equivalent java libraries. Is this a failure of the clojure library
ecosystem or a pragmatic solution? 

Phil

-- 
-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to