Open vemv opened 5 years ago
I think it would be relatively easy to implement a formatter that achieved the following:
- (speced/defn safely-read-ns-contents [^string? buffer, ^clojure.lang.Namespace ns-obj] + (speced/defn safely-read-ns-contents [^string? buffer, ^Namespace ns-obj]
Also: insert :import statements if missing (people may refer to classes without importing them)
Little caveat: speced.def uses e.g. ^int? metadata, which may translate to {:tag int?} and confuse this formatter.
^int?
{:tag int?}
I think it would be relatively easy to implement a formatter that achieved the following: