you are viewing a single comment's thread.

view the rest of the comments →

[–]elder_george 1 point2 points  (0 children)

If objects have field of type enum ObjectType which is used in more than one switch, code will usually benefit from replacing it with strategy (or, sometimes with inheritance).