This was pretty neat, I'm just not sure I agree with your use of sealed classes. The way you used them (entirely constant) seems like you'd be better off with enums.
➕ 2
v
vishna
06/03/2019, 3:02 PM
Good point. I want to believe though we only have enums in Kotlin because of the Java inter-op 🙂
a
altavir
06/03/2019, 4:27 PM
Enums are syntactically shorter and much lighter in terms of VM.