It seems that while I was not looking many languages got support for pattern matching and immutable ADT-like types (in many cases through subtyping, though).
Help me make an exhaustive list of those languages which have added them!
Conversation
Replying to
Kotlin:
- data classes -> kotlinlang.org/docs/reference
- sealed classes -> kotlinlang.org/docs/reference
- pattern matching (limited though) -> kotlinlang.org/docs/reference

