Switsch Statement like in java.

Blake blake at kingdomrpg.com
Wed Sep 7 11:31:47 UTC 2005


On Wed, 07 Sep 2005 04:21:00 -0700, Cees De Groot <cdegroot at gmail.com>  
wrote:

> Why? I've been programming Smalltalk full-time now for roughly 5
> years, never needed the thing...
>
> Usually "I need a switch statement" is a strong refactoring smell...

I remember reading Bertrand Meyer's Eiffel books in the mid-90s where case  
was specifically not included as a non-OO solution.

You can't extend a case statement. (I mean, you can't extend one as a  
client of the class, obviously you can go in and hack.)



More information about the Squeak-dev mailing list