FYI, I ask for such a feature because there's a lo...
# language-proposals
l
FYI, I ask for such a feature because there's a lot of
Int
in Android which can only have a few values, and I dislike having to add an else branch each time for something that can't happen. For example, View Visibility is not an enum, but can have 3
Int
values (VISIBLE, INVISIBLE, GONE). The impossible else cases pollutes a lot of Android code IMHO
☝️ 1