DEV Community

Discussion on: Design Patterns: Strategy Pattern

Collapse
 
jvanbruegge profile image
Jan van Brügge

No, Java is limited as a language. OO is verbose and leads to unnecessary abstractions (read: convoluted class hierachies).
E.g. your example:
In haskell: A bunch of functions that follow an interface (1 level)
OO: Robot class, subclass, Behavior interface, behavior implementation (4 levels)