Re: Coding conventions
Re: Coding conventions
- Subject: Re: Coding conventions
- From: Bill Cheeseman <email@hidden>
- Date: Mon, 29 Oct 2001 06:47:58 -0500
on 10/29/01 6:17 AM, Brian Christensen at email@hidden wrote:
>
I am curious as to what general coding conventions folks around here
>
use. Is it standard to prefix instance variables and private methods
>
with an underscore? Are there any other conventions to keep in mind?
Some of the more common conventions are summarized in the Introduction to
Vermont Recipes (see the URL, below).
Apple reserves the leading underscore for its own private headers, to help
avoid namespace conflicts (you wouldn't want to unknowingly override a
private Apple variable). Apple has specifically (but informally) requested
that the rest of us not use leading underscores.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont