Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Getting this error regarding duck-streams/spit ...
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Victor Olteanu  
View profile  
 More options Oct 26 2010, 2:44 pm
From: Victor Olteanu <bluestar...@gmail.com>
Date: Tue, 26 Oct 2010 14:44:11 -0400
Local: Tues, Oct 26 2010 2:44 pm
Subject: Re: Getting this error regarding duck-streams/spit ...

Thank you Btsai. I checked both
http://richhickey.github.com/clojure-contrib/io-api.html#clojure.cont...
and
http://clojuredocs.org/clojure_contrib/clojure.contrib.duck-streams/s...
and couldn't find any reference to deprecation.
If you can confirm that this deprecation was made "official" then we could
update those docs so other people won't run into these same issues.

Victor

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.  In 1.2, duck-streams became deprecated and functions
> such as spit were incorporated into clojure.core:

> http://clojure.github.com/clojure/clojure.core-api.html#clojure.core/...
> http://clojure.github.com/clojure-contrib/duck-streams-api.html

> Are you using anything beyond spit and slurp*?  If not, I think you
> can switch to clojure.core's slurp and spit and drop duck-streams
> altogether.

> On Oct 25, 8:59 pm, 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 with
> the
> > same name in different packages, which I believe it's quite unfortunate.
> > There is slurp in clojure.core and there is duck-streams/slurp* , along
> with
> > 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 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+unsubscribe@googlegroups.com<clojure%2Bunsubscribe@googlegroups.com >
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.