Enum Comparison vs is Operator

Mon, 05 Apr 2021 00:00:00 +0000

Kotlin sealed classes are pretty great for modeling a fixed set of choices that may have associated data¹. However, newfangled technology tends to cost something ². Compilers, virtual machines, and operating systems can often compensate over time for the incurred performance cost.