I'm new to Clojure as well, so I don't know if there's a native way to perform normal I/O. The cleverly named article at http://copperthoughts.com/p/clojure-io-p1 is over a year old, so I don't know if things have changed, but it suggests that besides the slurp function (which appears as impractical from a memory standpoint as the Perl equivalent), you really do need to dip into Java for I/O.
Assuming it's just a matter of time before I/O and all other common tasks in Clojure are done in native Clojure, it really seems like a contender for the pg "hundred year language." It has lots of default macro shortcuts for common tasks and really seems to prefer abstracting away redundancy to following tradition. It even uses the Arc-style let macro instead of the paren-happy one found in Scheme and CL. It also makes concurrency almost as simple as pg's "Bring Back Moore's Law" startup idea. And it's also well suited to web applications. The more I think about, the more it really does seem to be the Arc that's already here.
Comments
I'm new to Clojure as well, so I don't know if there's a native way to perform normal I/O. The cleverly named article at http://copperthoughts.com/p/clojure-io-p1 is over a year old, so I don't know if things have changed, but it suggests that besides the slurp function (which appears as impractical from a memory standpoint as the Perl equivalent), you really do need to dip into Java for I/O.
Assuming it's just a matter of time before I/O and all other common tasks in Clojure are done in native Clojure, it really seems like a contender for the pg "hundred year language." It has lots of default macro shortcuts for common tasks and really seems to prefer abstracting away redundancy to following tradition. It even uses the Arc-style let macro instead of the paren-happy one found in Scheme and CL. It also makes concurrency almost as simple as pg's "Bring Back Moore's Law" startup idea. And it's also well suited to web applications. The more I think about, the more it really does seem to be the Arc that's already here.