Inside your Base.show
implementation, you want to call print
, not show
on the string. show
will always give you some output that you can ideally copy-and-paste into the REPL and get back the same object. print
is for when you want to just print the string as-is, but it falls back to show
for most other objects.
4 Likes