▲ | ackfoobar 5 days ago | |||||||||||||||||||||||||
> Just ugliness and typical boilerplate heavy approach of JVM languages. I have provided a case how using inheritance to express sum types can help in the use site. You attacked without substantiating your claim. | ||||||||||||||||||||||||||
▲ | wiseowise 5 days ago | parent [-] | |||||||||||||||||||||||||
Kotlin's/Java's implementation is just a poor man's implementation of very restricted set of real sum types. I have no idea what > This has the benefit of giving you the ability to refer to a case as its own type. means. | ||||||||||||||||||||||||||
|