Re: Naming conventions
Re: Naming conventions
- Subject: Re: Naming conventions
- From: Ondra Cada <email@hidden>
- Date: Thu, 13 Sep 2001 11:02:09 +0200
Brent,
>
>>>>> Brent Gulanowski (BG) wrote at Wed, 12 Sep 2001 20:25:00 -0400:
BG> Putting capital letters in front of class names to make them unique is
BG> not particularly foolproof. While I can't see it being anywhere as much
BG> of a problem in Cocoa as Java at large (out there on the wild wild web),
BG> you never know. So what have people said about this before now? And is
BG> everybody happy with it the way it is?
Nope. Some scoping would be definitely great.
I guess that nobody wanted to mess up with ObjC (which was designed with
global class space) that much, since it is really not "as much of a problem".
Therefore the prefix hack is used widely as a workaround, which makes nobody
happy, but (I guess) anybody just barely satisfied...
Incidentally, there is another scoping problem of method names with
categories. I guess it is not worth solving, but I'm not sure.
---
Ondra Cada
OCSoftware: email@hidden
http://www.ocs.cz
private email@hidden
http://www.ocs.cz/oc