I wonder if it would be a good idea to include a clojure.io
namespace in Clojure itself.
+1.
read-lines was left out since ...
On the basis that it's less painful to add new stuff in later than to
remove stuff I agree that erring on the side of caution in the correct
approach.
Overall I
On 01.01.2010, at 03:58, Phil Hagelberg wrote:
I welcome discussion about this proposal. Do you think it's
necessary? Are
there any functions we should leave out? Any others we should
promote from
contrib?
I am very much in favour of a clojure.io library. It's difficult to do
much
Hi,
On Jan 1, 3:58 am, Phil Hagelberg p...@hagelb.org wrote:
I've been looking over our use of contrib in our large-ish project
at work. About 90% of the invocations of contrib functions are
I/O-related.
evil mutable little bastards, these files ;-)
I wonder if it would be a good idea to
Phil,
Overall I think this is a good idea, but I get the feeling duck-
streams isn't quite ready, at least not today. However, this isn't to
say that it couldn't be ready if we worked hard on it over the next
few months.
Here are some things to look into off the top of my head
1. I'd recommend
On Dec 31 2009, 9:58 pm, Phil Hagelberg p...@hagelb.org wrote:
I wonder if it would be a good idea to include a clojure.io
namespace in Clojure itself. I've mentioned the idea a few times on IRC,
and people seemed to be very much in favour.
I've considered this too, but I know Rich Hickey has
Sean Devlin francoisdev...@gmail.com writes:
1. I'd recommend adding support for general unix file utilities.
I've written some of them myself, and you can review/borrow/steal code
from here:
http://github.com/francoisdevlin/devlinsf-clojure-utils/blob/master/src/lib/sfd/file_utils.clj
I think something more abstract would be good. A function or macro
where you pass it an IO Spec and it takes care of all the class
stuff.
(io/read [:bytes :from SOMETHING :as p]
(do-stuff-with-a-byte p))
(io/read [:lines :from SOMETHING :as p]
(do-stuff-with-a-string p))
(io/read [:lines
Kevin Downey redc...@gmail.com writes:
(io/read [:lines :from SOMETHING :as p]
(do-stuff-with-a-string p))
(io/read [:lines :from SOMETHING]) ;no :as binding or body, results
in a lazy-seq of lines
And it's important to specify whether p in the former or the head item
in the sequence in
My 2c.
In any clojure.io library, make sure none of the warts that are planned to
be fixed in NIO2 are codified.
JDK7 includes work on Path, large directory traversal, event notifications
etc.
See http://java.sun.com/developer/technicalArticles/javase/nio/
Alexander
2010/1/1 Phil Hagelberg
On Jan 1, 4:34 pm, Phil Hagelberg p...@hagelb.org wrote:
Sean Devlin francoisdev...@gmail.com writes:
1. I'd recommend adding support for general unix file utilities.
I've written some of them myself, and you can review/borrow/steal code
from here:
I've been looking over our use of contrib in our large-ish project
at work. About 90% of the invocations of contrib functions are
I/O-related. I wonder if it would be a good idea to include a clojure.io
namespace in Clojure itself. I've mentioned the idea a few times on IRC,
and people seemed to
11 matches
Mail list logo