It's currently very annoying to update DrawMode because you need to do something if the enum variant doesn't match your expectations even though you know the variant can only ever be X. A better design IMO is to delete DrawMode and turn FillMode + StrokeMode into components. This naturally expresses the idea that they can be ORed together.
It's currently very annoying to update
DrawMode
because you need to do something if the enum variant doesn't match your expectations even though you know the variant can only ever be X. A better design IMO is to delete DrawMode and turn FillMode + StrokeMode into components. This naturally expresses the idea that they can be ORed together.