Closed vemv closed 2 months ago
@alexander-yakushev you may want to give this one a shot while you're with other things Inspector
Semi-related - when inspecting a Method, it can get trimmed
(this one is from PersistentVector)
I see what's going on. First, the method gets printed honoring the max-atom-length
(which is 150 by default), and truncated above that limit. Then it gets shortened by stripping the package prefixes, so you get a truncated string that is shorter than 150 characters. The behavior hasn't changed from before (apart from shortening).
I don't mind dancing around truncation limits a bit (serialize into a separate printer, shorten, then truncate). But I'm not sure this is needed – method signature that is 100+ characters long is not very useful.
However it would seem simple enough to disable all trimming for Method/Field/... Value
s?
When inspecting classes, often all fields/methods/... are prefixed with the fully-qualified class name.
Example:
This is particularly ugly in
com.corp.Dog.isTopStylist
- there isn't an actual thing namedcom.corp.Dog.isTopStylist
- it'sisTopStylist
so removing the prefix would be both more readable and more correct.There may be cases where there's a legit use case for rendering a prefix - I'm thinking interface implementation or method inheritance.
Even then, I believe the right thing would be to render the short name, and provide any extra info when going
down
that particular method.