[haiku-commits] Re: r39614 - haiku/trunk/src/servers/app

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Thu, 25 Nov 2010 13:01:43 +0100

On 2010-11-24 at 20:31:08 [+0100], Clemens Zeidler 
<clemens.zeidler@xxxxxxxxxxxxxx> wrote:
> Am 25.11.2010, 07:34 Uhr, schrieb <ingo_weinhold@xxxxxx>:
> > +            enum Action {
> > +                ACTION_NONE,
> > +                ACTION_ZOOM,
> is there something in the coding guidelines for enum / struc naming
> convention? E.g. I saw more names like click_type...

The "lower case with underscores" style is used consistently in the Be API. 
The problem with that is that it doesn't use any kind of namespace and can 
thus collide with user-defined names. Hence we started a while ago to use 
class name convention also for struct and enum types. At least for public 
types, but I find it only consequent to do that also in non-public code.

CU, Ingo

Other related posts: