• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Coding conventions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • How to get an immediate feedback
      • From: Reuss <email@hidden>
    • Re: Coding conventions
      • From: Stéphane Sudre <email@hidden>
    • Re: Coding conventions
      • From: "Erik M. Buck" <email@hidden>
References: 
 >Coding conventions (From: Brian Christensen <email@hidden>)

  • Prev by Date: HTTP post
  • Next by Date: Re: [OT] Bugreporter update - follow up
  • Previous by thread: Coding conventions
  • Next by thread: Re: Coding conventions
  • Index(es):
    • Date
    • Thread