Quoting Thorsten Haude <[EMAIL PROTECTED]>: > Hi, > > this part is not mentioned in our style guide, and I used this fact to > occasionally push a style into NEdit code. Now that this was mentioned > off-list, I would like to clear it up. > > I very much prefer to write pointer types with the whole type left of > the blank, like this: > WindowInfo* window = NULL; > > I know that the tradition is different, but I think it's just that, > tradition; it makes more sense to keep the type together than to > attach part of the type description to the variable. > > What do you think?
Well, I disagree, myself. (And I don't much like it in C++ either.) I understand the grouping of type information that this does, but it breaks down when you declare more than one pointer, which the C syntax allows, and I find that not allowing that (as the Stroustrup school of variable declarations would have you do) is pushing things too far. (That said I am required to code C++ this way in my current job.) What do others think? Tony -- NEdit Develop mailing list - [email protected] http://www.nedit.org/mailman/listinfo/develop
