Re: Caps convention.
From: Thomas Matthews (Thomas_MatthewsSpamBotsSuck_at_sbcglobal.net)
Date: 12/20/03
- Next message: Richard Heathfield: "Re: nr of bits set to "1" in a byte"
- Previous message: Joona I Palaste: "Re: what about this new way of opening file"
- In reply to: Malcolm: "Caps convention."
- Next in thread: E. Robert Tisdale: "Re: Caps convention."
- Reply: E. Robert Tisdale: "Re: Caps convention."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 20 Dec 2003 18:30:37 GMT
Malcolm wrote:
> Use all lower case for ansi c functions, and Capitalise For
> Platform-Specific.
>
> If you call something with caps, then your function name requires caps
> itself.
The common style is to use all-caps for constants and macros.
Function name styles differ:
leading word starts lowercase followed by Capitalized words:
thisIsMyFunction
same thing, using underscores:
this_Was_My_Function
starting with Captials:
ThisIsAnotherFunction
This_May_Be_More_Readable
as you suggested:
anansicfunction
another_ansi_function
However, most all good coding styles don't permit function names
to start with '_' (underscores) as these are reserved for
implementations.
This is a religous issue: all a matter of faith. As long as you
are consistent and the names are readble, any style will do. Just
as there is no best religion, there is no best coding style.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.raos.demon.uk/acllc-c++/faq.html
Other sites:
http://www.josuttis.com -- C++ STL Library book
http://www.sgi.com/tech/stl -- Standard Template Library
- Next message: Richard Heathfield: "Re: nr of bits set to "1" in a byte"
- Previous message: Joona I Palaste: "Re: what about this new way of opening file"
- In reply to: Malcolm: "Caps convention."
- Next in thread: E. Robert Tisdale: "Re: Caps convention."
- Reply: E. Robert Tisdale: "Re: Caps convention."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|