clojure-complete
clojure-complete copied to clipboard
intermediate more "essential" result sequence - rendering agnostic
To serve the purpose of several kinds of "displays" (console, editors, etc.), it would be interesting to not drop "too early" information on the results. E.G. once a var, a Class, a MethodHandler have been "rendered"/"reified" to a String, it's too late for easily sorting/displaying/further filtering the result in different ways.
Maybe we could have first the non-reified results returned, and construct above this (respecting the current "API" to not break existing client code) a default textual rendering layer.
For example, for Counterclockwise's purpose, I may enrich the "bare list" with more information such as repeating the namespace the var was aliased/used from, the type of the completion (:var, :namespace, :class, :static-member, :instance-member, etc.), the arglist, the documentation, etc.