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:
>
> >http://github.com/francoisdevlin/devlinsf-clojure-utils/blob/master/s...
>
> These are all one-line wrappers around Java methods. I know Rich has
> stated that the Clojure philosophy is to avoid such wrappers unless they
> provide significant additional value. Perhaps this will need to change
> as people start to write more cross-platform code, but I don't know if
> we're to that point yet.

You missed a small detail.  There is a call to the to-file function in
there.  This allows the file utilities to work on file objects or
string paths the same way.  I like this trick because it lets the fns
work on a broader set of inputs

> > 2.  duck-streams works very well for text, but not binary formats.  I
> > know there was discussion about it here:
>
> >http://groups.google.com/group/clojure/browse_thread/thread/416ca90d3...
>
> I believe it's the case that reader and writer don't work for binary
> formats, but copy should. Copying between two files or between a file
> and a byte array should work fine unless I'm missing something. This
> should be better-documented though.
>
> > 3.  There should be a brainstorming session to see what objects reader/
> > writer will dispatch over, and the multimethods improved accordingly.
> > This should probably happen anyway.
>
> It covers everything I can think of, but if you've got suggestions let's
> hear them.

The java.sql.Clob & Blob interfaces might be a nice cases to add
(where possible).

Sean

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

Reply via email to