Tuesday, January 31, 2006

Visiting Python and Smalltalk

Something that I continually pester people about, after working on a message passing system in my very first big Java project, the switch statement is not OO, "The switch statement has all sorts of problems with cohesion and coupling. The irony today is that almost all OO languages today, other than Python and Smalltalk (in which it can easily be implemented), still have switch statements."

Also, OO - the Solution to the Problem of Switch Statements which links to Replacing Conditional with Polymorphism.
Post a Comment