Re: contrib.duck-streams or contrib.io?

2011-11-28 Thread Stuart Sierra
Use clojure.java.io, included in Clojure since release 1.2.0.

Regards,
-Stuart Sierra
clojure.com

-- 
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



Re: contrib.duck-streams or contrib.io?

2011-11-25 Thread Sean Corfield
On Thu, Nov 24, 2011 at 9:20 PM, Daniel Glauser danglau...@gmail.com wrote:
 I starting to do some simple file IO stuff with Clojure and was
 wondering which namespace was considered the best one to use,
 contrib.duck-streams on contrib.io?

duck-streams was deprecated a while back I believe and didn't make it
into the base library that was considered for 1.3. More information
about available contrib libraries (and migration from older,
deprecated libraries), can be found here:

http://dev.clojure.org/display/design/Where+Did+Clojure.Contrib+Go
-- 
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

Perfection is the enemy of the good.
-- Gustave Flaubert, French realist novelist (1821-1880)

-- 
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


Re: contrib.duck-streams or contrib.io?

2011-11-24 Thread Takahiro
I think clojure.java.io is latest one.
http://clojure.github.com/clojure/clojure.java.io-api.html
Since clojure.java.io returns raw java object, you need to use java
interop directly for write-lines etc.

BTW clojure.java.io is beautiful example of protocol, I think.

2011/11/25 Daniel Glauser danglau...@gmail.com:
 Hello folks,

 I starting to do some simple file IO stuff with Clojure and was
 wondering which namespace was considered the best one to use,
 contrib.duck-streams on contrib.io?  There seems to be a bit of
 overlap between the two and at least some of the functions with the
 same names have different implementations (I looked at write-lines).

 A query against ClojureDocs for write-lines shows that it's defined in
 two namespaces:
 http://clojuredocs.org/search?x=0y=0q=write-lines

 Just trying to figure out which is the most recent/up to date/one that
 folks recommend moving forward.

 Thanks,
 Daniel

 --
 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 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