• 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: Code Guidelines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Code Guidelines


  • Subject: Re: Code Guidelines
  • From: Alex Curylo <email@hidden>
  • Date: Tue, 01 Jun 2004 11:16:14 -0700

on 6/1/04 9:26 AM, email@hidden at
email@hidden wrote:

> Yup, and it is not mystical the slightest bit: it is that (a) there is
> no reason altogether to tell parameters from locals: they are the very
> very same thing,

Hmmmm ... that strikes me as incorrect. Changing the values pointed to by
reference and pointer parameters affects code outside the local scope, which
manipulating a local doesn't. Thus for instance PowerPlant's convention of
prefixing parameters with "in" or "out" or "io" to make it clear what their
scope is strikes me as reasonable. More reasonable than the empty-defined
"IN" and "OUT" you see throughout Win32 headers, anyway, and more reasonable
than no convention whatsoever to indicate which a given parameter might be
while browsing header files new to you...

--
Alex Curylo -- email@hidden -- http://www.alexcurylo.com/

I don't have an attitude problem. You have a perception problem.
_______________________________________________
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.


  • Follow-Ups:
    • Re: Code Guidelines
      • From: Ondra Cada <email@hidden>
  • Prev by Date: Button confusion
  • Next by Date: Re: Apple, Are You Listening?
  • Previous by thread: Re: Code Guidelines
  • Next by thread: Re: Code Guidelines
  • Index(es):
    • Date
    • Thread