David E Jones wrote:
My main concern was that it makes these various bits of code bigger and more complex

That's true. In Fowler's Replace Conditional With Polymorphism example, the ten line switch statement is replaced by an abstract class and three subclasses. It's more code, but it's easier to build upon.

-Adrian

Reply via email to