[haiku-development] Re: coding style

  • From: Bruno Albuquerque <bga@xxxxxxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 03 Mar 2008 08:32:41 -0300

Marcus Overhagen wrote:

* use "char* variable" instead of "char *variable" in C++ code

I disagree with that one. The * belongs to the variable, not to the type.

I wonder why. When I see something like this:

char* foo;

I read that foo is a pointer to a char (foo's type is "char pointer"). For me, moving * to be next to the variable name does not make much sense.

-Bruno


Other related posts: