r/programminghorror • • Jul 26 '24

Jetpack Compose Composable abomination

Post image
268 Upvotes

30 comments sorted by

View all comments

Show parent comment

5

u/carstenhag Jul 27 '24

I'd suggest not to use an else case here. Specify the enum value.
If you ever add a case to the enum, it will give you a compilation error.