Sealed with Enum (<https://antonioleiva.com/sealed...
# announcements
e
d
Maybe the example is just to simple to show the advantage of sealed classes but having
fun execute(x: Int): Int
defined as a method of Operation (could be an interface) the whole when block would turn into
op.execute(x)
which is imo the better approach.