<@U5UU34LPK> I think the current way which follows...
# language-proposals
l
@karelpeeters I think the current way which follows java enums, but with the convenience of the
when
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.