TIL that `MyClass::class.sealedSubclasses` does no...
# getting-started
p
TIL that
MyClass::class.sealedSubclasses
does not return the classes in the order they were defined as opposed to
MyEnum.values()
in Java. Bit me!
r
Interesting. I wonder if this is for a reason, or if it's just an oversight.
i
Given that sealed class subclasses potentially have more freedom of where they can be declared, it might be hard to guarantee a particular iteration order of them.
🤔 1
t
=