The derived Debug for molt::Value is ugly and unhelpful. Because the string-rep is saved in an UnsafeCell it isn't visible; and because the internal structure of a Value is complex, the output is hard to read anyway. Add a better Debug.
Questions:
Create the string_rep if it doesn't exist?
Display the debug for the data_rep if the data_rep exists?
The derived
Debug
formolt::Value
is ugly and unhelpful. Because the string-rep is saved in anUnsafeCell
it isn't visible; and because the internal structure of aValue
is complex, the output is hard to read anyway. Add a better Debug.Questions:
string_rep
if it doesn't exist?data_rep
if the data_rep exists?string_rep
is large, truncate it?