franks42 / clj-ns-browser

Smalltalk-like namespace/class/var/function browser for clojure docs and source-code based on seesaw
Eclipse Public License 1.0
175 stars 11 forks source link

Hide protocol implementation details from user? #34

Open jafingerhut opened 12 years ago

jafingerhut commented 12 years ago

Consider changing vars with category Protocol so that VALUE does not show up as a map, and "Inspect Coll" button is disabled.

franks42 commented 12 years ago

I appreciate the idea that you want to raise the abstraction level for the user when she encounters a "protocol". However, currently a protocol is defined by the map-value, and by introspecting that map I was able to deduce some of its workings. I was surprised that protocol wasn't deftype'd, but it may have to do with bootstrapping (?) as needing protocols to make deftype work (?). Anyway, I personally like to see the implementation details especially when it's in clojure instead of java. Maybe a view-option to hide the implementation detail in some cases?