I sometimes have need to change the names of fns in some of my libs.
As I was doing this, I wondered - is there a way to mark a function or 
namespace or other as deprecated?

I have not seen anything to this effect.

if not,

would it be feasible to mark a function/namespace with a 
^:deprecated metadata 
and then provide compiler/reader warnings - or instructions for alternative 
functions in the case of renames

e.g

(defn ^:deprecated x ....)                                => produces a 
compiler/reader warning "_FILE_: _LINE_: fn ns/x is deprecated"
(defn ^{:deprecated "do this instead"} x ...)      => produces a 
compiler/reader warning "_FILE_: _LINE_: fn ns/x is deprecated: do this 
instead" 


thinking out loud

Dave


-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to