On Sun, Dec 28, 2008 at 9:22 AM, Boyd Brown <boy...@gmail.com> wrote:
>
> Hello.  I can't seem to find 'spit'.

'spit' is in clojure-contrib:
http://code.google.com/p/clojure-contrib/source/browse/trunk/src/clojure/contrib/duck_streams.clj?r=325#177

It's inclusion in clojure.core is planned (search for spit):
http://richhickey.backpackit.com/pub/1597914

This is an excellent demonstration of why I think it's best to use
'require' over 'use' -- it encourages clearly indicating where
non-built-in functions are coming from.  The code could have looked
like:

(ns word-count
  (:require [clojure.contrib.duck-streams :as ds]))

...and later...

(ds/spit ...)

--Chouser

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