Message from discussion Getting this error regarding duck-streams/spit ...
Received: by 10.150.160.19 with SMTP id i19mr3748734ybe.49.1288100382377;
Tue, 26 Oct 2010 06:39:42 -0700 (PDT)
Received: by 10.150.158.14 with SMTP id g14ls4308922ybe.7.p; Tue, 26 Oct 2010
06:39:36 -0700 (PDT)
Received: by 10.151.69.12 with SMTP id w12mr1243971ybk.34.1288100375782; Tue,
26 Oct 2010 06:39:35 -0700 (PDT)
Received: by u10g2000yqk.googlegroups.com with HTTP; Tue, 26 Oct 2010 06:39:35
Date: Tue, 26 Oct 2010 06:39:35 -0700 (PDT)
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:22.214.171.124)
Gecko/20100915 Ubuntu/10.04 (lucid) Firefox/3.6.10,gzip(gfe)
Subject: Re: Getting this error regarding duck-streams/spit ...
From: Sean Devlin <francoisdev...@gmail.com>
To: Clojure <firstname.lastname@example.org>
Content-Type: text/plain; charset=ISO-8859-1
The stuff in Clojure.java.io would be the preferred tool, yes.
However, if contrib has something that solves your problem, go ahead
and use it. Be careful though, because contrib is much more likely to
change than something officially in core.
On Oct 26, 8:51=A0am, Dave Ray <dave...@gmail.com> wrote:
> Until this message, I hadn't noticed that duck-streams was deprecated.
> Is the stuff in clojure.java.io the "official" replacement for that
> functionality? So now rather than duck-streams/read-lines, I'd
> manually combine with-open, clojure.java.io/reader, and line-seq?
> Just checking.
> On Tue, Oct 26, 2010 at 12:46 AM, Btsai <benny.t...@gmail.com> wrote:
> > I don't think it's a mistake or accident that spit exists in
> > clojure.core. =A0In 1.2, duck-streams became deprecated and functions
> > such as spit were incorporated into clojure.core:
> > Are you using anything beyond spit and slurp*? =A0If not, I think you
> > can switch to clojure.core's slurp and spit and drop duck-streams
> > altogether.
> > On Oct 25, 8:59=A0pm, Victor Olteanu <bluestar...@gmail.com> wrote:
> >> Thank you.
> >> The following statement worked for me:
> >> (:require [clojure.contrib.duck-streams :as d])
> >> As I was using slurp and slurp*, I then had to do the following:
> >> use the form "d/slurp*" instead (prefixed with d/)
> >> use "slurp" without a change
> >> This brings up a related point - I can see that there are functions wi=
> >> same name in different packages, which I believe it's quite unfortunat=
> >> There is slurp in clojure.core and there is duck-streams/slurp* , alon=
> >> other functions such as spit...
> >> I hope this kind of things might be addressed in future versions of
> >> Clojure...
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Clojure" group.
> > To post to this group, send email to email@example.com
> > Note that posts from new members are moderated - please be patient with=
your first post.
> > To unsubscribe from this group, send email to
> > firstname.lastname@example.org
> > For more options, visit this group at