Currently when I do `object Stuff` and call `toStr...
# stdlib
d
Currently when I do
object Stuff
and call
toString()
on it, it includes hex. I recall there were some news about nicer toString for objects, but I can't find them now, maybe someone remembers?
d
Right!
data object
, thanks!
I wonder if there's some nicer way to pretty-print objects in logs with the 1.7/1.8 version of Kotlin rather then manually overriding
toString()
. Maybe some plugin...
y
I think in 1.8 (might be 1.8.20) you can specify
languageLevel = "1.9"
or something like that and you'll be able to use
data objects
d
oh, that would a be nice thing to try.