https://kotlinlang.org logo
s

sam

03/09/2019, 1:15 PM
Yes that's one way, would work for Gens. My idea for general purpose assertions, say you are doing
person shouldBe Person("sam")
then it will call .toString on person, but if there was a Show[Person] registered via SPI then it could look it up and use it.