Closed kahaaga closed 8 months ago
we could define a show
method for all top level abstract types that shows the fields and values. We can make the arbitrary decision that for some types we print the actual types, while for all other types we print the type name.
X with fields:
a = 0.5 # print value
b = Renyi # print type, $(nameof(typeof(value))
we could define a show method for all top level abstract types that shows the fields and values.
I guess using fieldnames(x::AbstractType)
could be used to iterate through all fields and show them.
Estimators and other types need nicer default printing. Most of our types are parameterized, often with multiple type parameters, leading to extremely long and messy printing in the console. It would be nice to clean this up a bit.
Example:
It would be nice if this just printed something like
I'm not sure what level of abstraction default printing should have. But I think a clean-up, all the way from the information measure definitions, all the way up to nested types such as
StatisticalComplexity
is in order.