Re: Code Guidelines
Re: Code Guidelines
- Subject: Re: Code Guidelines
- From: Bob Ippolito <email@hidden>
- Date: Mon, 31 May 2004 13:30:24 -0400
On May 31, 2004, at 11:08 AM, M. Uli Kusterer wrote:
>
At 15:35 Uhr +0200 31.05.2004, Ondra Cada wrote:
>
> Since for globals, there already *is* a standard, which says "name
>
> them
>
> capitalized with a prefix", whilst locals should begin by a lowercase
>
> ;)
>
>
Haven't seen that used anywhere yet. Can you provide an example? The
>
only one I can think of offhand is NSApp. Are there others? Also, I
>
find it kinda dangerous to use the same prefix for
>
>
- Classes
>
- Globals
>
- Constants
>
>
Because there's a lot of behavioral differences between them.
- Functions
.. but they are all in the global scope, which is the point. I
definitely don't agree that it's dangerous for all of these things, in
the global scope, to have the same kind of nomenclature. There are
behavioral differences between NSString and NSDictionary, but you don't
prefix those differently (though surely the names carry some semantic
meaning with them).
-bob
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.