This is because there is no toString method defined for these custom types. CIDER uses the Orchard library to inspect values and root and lookup vars end up being printed here:
With the toString method implemented in the RootVar and LookupVar types, instances of those types are now shown in the following way in the CIDER Inspector:
An alternative would be specialize the inspect-value multi method of Orchard for those types, but I think the toString is good enough and generally useful.
Hi @czan,
At the moment root and lookup vars are shown a bit cryptic in the CIDER Inspector.
The above map with a root and a lookup var is shown in the following way:
This is because there is no toString method defined for these custom types. CIDER uses the Orchard library to inspect values and root and lookup vars end up being printed here:
https://github.com/clojure-emacs/orchard/blob/master/src/orchard/inspect.clj#L299
With the toString method implemented in the RootVar and LookupVar types, instances of those types are now shown in the following way in the CIDER Inspector:
An alternative would be specialize the
inspect-value
multi method of Orchard for those types, but I think the toString is good enough and generally useful.