diff options
author | Stuart Sierra <mail@stuartsierra.com> | 2008-04-11 13:57:24 +0000 |
---|---|---|
committer | Stuart Sierra <mail@stuartsierra.com> | 2008-04-11 13:57:24 +0000 |
commit | 46cf444fc3cb4637ecdef933246b45471426b55c (patch) | |
tree | a2f4540feac3f207d7a40bef1574a333a75c3ac2 | |
parent | ca68d8d9a2434dee67aaeaffd245e383b82e6e6d (diff) |
anaphor.clj: Marked aif and awhen as deprecated.
-rw-r--r-- | anaphor.clj | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/anaphor.clj b/anaphor.clj index 4ffbde46..696f0593 100644 --- a/anaphor.clj +++ b/anaphor.clj @@ -28,7 +28,10 @@ (clojure/refer 'clojure) (defmacro aif - "Like 'if', but binds the result of the test to 'symbol' in the + "DEPRECATED in favor of 'if-let' in boot.clj as of Clojure SVN + revision 755 on March 17 2008. + + Like 'if', but binds the result of the test to 'symbol' in the body." ([symbol test then] `(let [~symbol ~test] @@ -38,7 +41,10 @@ (if ~symbol ~then ~else)))) (defmacro awhen - "Like 'when', but binds the result of the test to 'symbol' in the + "DEPRECATED in favor of 'when-let' in boot.clj as of Clojure SVN + revision 755 on March 17 2008. + + Like 'when', but binds the result of the test to 'symbol' in the body." [symbol test & body] `(aif ~symbol ~test |