Re: new in duck-streams: with-out-writer / with-in-reader

2009-03-28 Thread Dex Wood
Do you think it would be useful to add the ability to append to a file? On Mar 28, 9:36 pm, Stuart Sierra wrote: > Following a discussion from a few days ago, I've added two new macros > to clojure.contrib.duck-streams: > > (defmacro with-out-writer >   "Opens a writer on f, binds it to *out*, a

Re: new in duck-streams: with-out-writer / with-in-reader

2009-03-28 Thread Parth
On Mar 29, 7:36 am, Stuart Sierra wrote: > Following a discussion from a few days ago, I've added two new macros > to clojure.contrib.duck-streams: > > (defmacro with-out-writer >   "Opens a writer on f, binds it to *out*, and evalutes body." >   [f & body] >   `(with-open [stream# (writer ~f)]