louiscad
12/22/2017, 11:22 PMwhen
expression is great. When I saw the Swift doc on enum exhaustiveness, I just wondered if Kotlin planned to have something similar that would flag non exhaustive enums as likely to get more values in the future (which tells library developers to handle unknown enums), encouraging/forcing library developers to handle not yet know cases, but I guess it's not something Kotlin developers have needed much. As an Android developer, I'm pretty fine with enums in Kotlin and the when
expression.