| As Wirth puts it, Algorithms + Data Structures = Programs What OOP nicely brings to the table is polymorphism and type extension. Two things not doable just with modules. Although generics help with static polymorphism. The problem was that the IT world went overboard with Java and C#, influenced by Smalltalk, Eiffel and other pure OO languages. Along the way, the world forgot about the other programming languages that offered both modules and objects. > Blasphemous as it may seem, a switch statement does the equivalent of simple polymorphism and can be kept inline. Except it is not extendable. |