com-lihaoyi / PPrint

Pretty-printing value, types and type-signatures in Scala
https://com-lihaoyi.github.io/PPrint/
MIT License
226 stars 39 forks source link

Blacklining while tokenizing strings #25

Open mihaisoloi opened 5 years ago

mihaisoloi commented 5 years ago

I think it would be extremely helpful if we'd have a way to do blacklining on case classes, or collections to see which of the parameters are different. For example case class Hello(arg: String)

when tokenizing two strings and applying blacklining we'd have something like this:

Hello("World") > Hello("Everyone")

mihaisoloi commented 5 years ago

Just read this article https://blog.softwaremill.com/human-readable-case-class-diffs-c707e83e08a2 and this is exactly what I was proposing. I'll give this a try, but I'd have to add https://github.com/softwaremill/diffx as a dependency