i guess another way to say this is that I can see both sides of the argument
... on one side, it shouldn't be a priority to resolve problems that java
already provides when there are probably other more pressing issues.  And
it's part of the design decision to allow users to leverage java libraries.
On the other, I've heard people complain about the verbosity of trying to
find libraries in java vs. python, and this could be an opportunity to fix
that.

On Tue, Mar 24, 2009 at 2:53 PM, e <evier...@gmail.com> wrote:

> does anyone else think that should be more fundamental like the python
> example?  imagine saying that out loud to your friend who asks . . . and the
> amount of noise, visually:
>
> "use clojure dot contrib dot duck dash streams".
>
> perhaps it is already the hope that it will "spit" will eventually sit next
> to "slurp"?
>
> I had thought of "java.io.FileWriter. "/path/to/your/file" . . .. but it's
> sometimes the case that using the jvm is acceptable enough, but learning the
> java libraries isn't ... because then folks are learning two languages and
> it also really ties a basic thing to the java language.
>
> Thanks for the answer.
>
>
> On Tue, Mar 24, 2009 at 2:10 PM, Stuart Sierra <
> the.stuart.sie...@gmail.com> wrote:
>
>>
>> On Mar 24, 12:42 pm, Parth Malwankar <parth.malwan...@gmail.com>
>> wrote:
>> > user=> (with-open [f (writer (file "test.txt"))]
>> >          (binding [*out* f]
>> >            (println "hello world !!!")))
>>
>> Or even more simply:
>>
>> (use 'clojure.contrib.duck-streams)
>> (spit  "test.txt"  "Hello, world!\n")
>>
>> -Stuart Sierra
>> >>
>>
>

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