4 ms·
Kotlin doesn't have real pattern matching.
by kod 7y ago
Kotlin doesn't have real pattern matching.
- lllr_finger 7y agoIt doesn't, but at least 'when' statements will be exhaustive when working with sealed classes - which is a breath of fresh air if you enjoy working with sum types and pattern matching.
- kod 7y agowhen expressions will be exhaustive, when statements will not. Needless distinctions like that make the fresh air a little less fresh...