Join Slack
I have a `sealed class` with many `data class` es that subclass it. I get these subclasses from some...
# getting-started
y
y
11/10/2022, 12:41 PM
I have a
sealed class
with many
data class
es that subclass it. I get these subclasses from some stream I want to build some sort of state machine that changes its state based on the last seen subclass. what’s a cheap/easy way to encode/decode the type of the seen class?
3
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by