clojure-dev

Issues: https://clojure.atlassian.net/browse/CLJ | Guide: https://insideclojure.org/2015/05/01/contributing-clojure/
schmee 2019-10-21T22:24:17.028400Z

Random thought that just struck me: the Clojure philosophy (both for core and the ecosystem) is make additive changes, not breaking changes. But with this philosophy comes the need to steer people from away from the old towards the new, and Clojure does not have an official way to mark something as deprecated like Java’s @Deprecated. Has something akin to @Deprecated ever been considered for the Clojure language?

2019-10-21T22:30:43.029300Z

if you look at core.clj some vars are tagged as deprecated, and they usually have DEPRECATED as the first word in the docstring

alexmiller 2019-10-21T22:55:04.029900Z

There is ^:deprecated in Clojure

alexmiller 2019-10-21T22:56:02.030800Z

There is also a pretty extensive ticket with enhanced support that’s ready to consider

lread 2019-10-21T23:14:21.033800Z

in the meantime, clj-kondo can warn on deprecated usages, and can selectively suppress warnings, which can be very handy