Object>>caseOf: (was Re: [Q] Enum style Object?)
tblanchard at mac.com
tblanchard at mac.com
Wed Feb 19 12:08:52 UTC 2003
On Wednesday, February 19, 2003, at 11:58 AM, Marco Paga wrote:
> Hi all.
> Using switch/case/many if's is in OO languages the sign that something
> is going very wrong. The Object>>caseOf: /otherwise: should get banned
> from the image.
You know, ordinarily I agree with you - but its a terribly handy thing
when parsing input - read a character and then caseOf: do the right
thing with it.
So I think banning it from the image is a bit strong.
-Todd Blanchard
More information about the Squeak-dev
mailing list
|