Re: New Cocoa Programmer
Re: New Cocoa Programmer
- Subject: Re: New Cocoa Programmer
- From: "John C. Randolph" <email@hidden>
- Date: Sun, 11 Nov 2001 08:12:04 -0800
On Sunday, November 11, 2001, at 06:20 AM, Ondra Cada wrote:
John,
John C. Randolph (JCR) wrote at Sun, 11 Nov 2001 05:11:22 -0800:
JCR> I don't quite agree with that. I notice that I don't write many
JCR> switch() statments anymore.
I do, though. Although you always can replace a switch by a number of
ifs,
quite often it makes code pretty unreadable.
JCR> BTW, the most horrific Obj-C code I ever saw used "switch ([self
JCR> class])"
I don't think you saw this, unless you use your time reading code which
would never compile.
Actually, come to think of it, it was switching on [[self class]
classID], which was an integer value obtained from a database through
their home-grown object persistence framework.
-jcr
"The right to be heard does not include the right to be taken
seriously." - Hubert Humphrey