diff options
author | Tom Faulhaber <git_net@infolace.com> | 2009-05-04 05:34:00 +0000 |
---|---|---|
committer | Tom Faulhaber <git_net@infolace.com> | 2009-05-04 05:34:00 +0000 |
commit | 86e90011e274910c618a5592d21ba3ce290a6855 (patch) | |
tree | f5bedd2f64d52b0050662f637b2d084a3c05356a /src/clojure/contrib/java_utils.clj | |
parent | 870a47e859bdea719e253e8116f7da8b115594ce (diff) |
Lots 'o doc strings
Diffstat (limited to 'src/clojure/contrib/java_utils.clj')
-rw-r--r-- | src/clojure/contrib/java_utils.clj | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/src/clojure/contrib/java_utils.clj b/src/clojure/contrib/java_utils.clj index 0ac39ece..0f7221e4 100644 --- a/src/clojure/contrib/java_utils.clj +++ b/src/clojure/contrib/java_utils.clj @@ -31,7 +31,29 @@ ; Shawn Hoover ; Perry Trolard -(ns clojure.contrib.java-utils +(ns + #^{:author "Stuart Halloway, Stephen C. Gilardi, Shawn Hoover, Perry Trolard", + :doc "A set of utilties for dealing with Java stuff like files and properties. + + Design goals: + + (1) Ease-of-use. These APIs should be convenient. Performance is secondary. + + (2) Duck typing. I hate having to think about the difference between + a string that names a file, and a File. Ditto for a ton of other + wrapper classes in the Java world (URL, InternetAddress). With these + APIs you should be able to think about domain equivalence, not type + equivalence. + + (3) No bossiness. I am not marking any of these functions as private + the docstrings will tell you the intended usage but do what works for you. + + Feedback welcome! + + If something in this module violates the principle of least surprise, please + let me (Stu) and the Clojure community know via the mailing list. +"} + clojure.contrib.java-utils (:import [java.io File] [java.util Properties])) @@ -135,4 +157,4 @@ -
\ No newline at end of file + |