I wonder if you could make this more type-safe by ...
# codereview
s
I wonder if you could make this more type-safe by using sealed classes