We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ef0c84 commit fdab141Copy full SHA for fdab141
README.adoc
@@ -1907,6 +1907,8 @@ was deprecated in case of versioned software (e.g. a library) or simply
1907
1908
[source,clojure]
1909
----
1910
+;;; good
1911
+;;
1912
;; in case we have a version
1913
(def ^{:deprecated "0.5"} foo
1914
"Use `bar` instead.
@@ -1922,6 +1924,16 @@ was deprecated in case of versioned software (e.g. a library) or simply
1922
1924
;; otherwise
1923
1925
(defn ^:deprecated foo
1926
(bar))
1927
+
1928
+;;; bad
1929
1930
+;; using the docstring to signal deprecation
1931
+(def foo
1932
+ "DEPRECATED: Use `bar` instead.
1933
+ 42)
1934
1935
+(ns foo.bar
1936
+ "DEPRECATED: A deprecated ns.")
1937
1938
1939
TIP: If you're into SemVer, it's a good idea to omit the patch version.
0 commit comments