Re-posting here. I ported Scala's best Pretty-Prin...
# feed
a
Re-posting here. I ported Scala's best Pretty-Printing Library to Kotlin. It prints data classes into well-formatted ascii color trees (both with-headings and without) and supports user-customizeable width and overflow truncation. Currently, the library uses kotlin-reflect but I can add multiplatform support via kotlinx-serialization if there’s an ask. https://github.com/deusaquilus/pprint-kotlin
K 14
👍 4
👌🏼 1
h
Kudos for the Black & White Printing option in times of climate crisis. 😄
l
KTON when Seriously tho, would really like to have this as an option for for configs, and such. Does the library support decoding data, too?
oh and does it handle imports/contexts?
a
Decoding? Imports? Contexts? I'm a bit confused. Could you give me some examples?
l
@Alexander Ioffe
com.example.Address
vs
org.example.Address
.