diff options
author | Aaron Bedra and Stuart Halloway <pair@clojure.com> | 2010-07-23 11:29:59 -0400 |
---|---|---|
committer | Aaron Bedra and Stuart Halloway <pair@clojure.com> | 2010-07-23 11:35:44 -0400 |
commit | 2a2879fcc4ac7c1796d12c8b35c49c5b9222bfc3 (patch) | |
tree | fa2d1965947341dfc4ec2883e8adefcc199895b2 | |
parent | 28fb2d9be2d388bbacea9bebad5870c41bfa5faa (diff) |
marking deprecations in repl-utils
-rw-r--r-- | src/main/clojure/clojure/contrib/repl_utils.clj | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/clojure/clojure/contrib/repl_utils.clj b/src/main/clojure/clojure/contrib/repl_utils.clj index 01c7a1d4..fdb321a5 100644 --- a/src/main/clojure/clojure/contrib/repl_utils.clj +++ b/src/main/clojure/clojure/contrib/repl_utils.clj @@ -8,6 +8,9 @@ ; Utilities meant to be used interactively at the REPL +;; Deprecated in 1.2: source, get-source, and apropos. These are +;; available in clojure.repl as source, source-fn, and apropos, respectively. + (ns ^{:author "Chris Houser, Christophe Grand, Stephen Gilardi, Michel Salim", :doc "Utilities meant to be used interactively at the REPL"} @@ -102,6 +105,7 @@ convenient. Example: (get-source 'filter)" + {:deprecated "1.2"} [x] (when-let [v (resolve x)] (when-let [filepath (:file (meta v))] @@ -122,6 +126,7 @@ namespace for which the .clj is in the classpath. Example: (source filter)" + {:deprecated "1.2"} [n] `(println (or (get-source '~n) (str "Source not found")))) @@ -129,6 +134,7 @@ "Given a regular expression or stringable thing, return a seq of all definitions in all currently-loaded namespaces that match the str-or-pattern." + {:deprecated "1.2"} [str-or-pattern] (let [matches? (if (instance? java.util.regex.Pattern str-or-pattern) #(re-find str-or-pattern (str %)) |