От: | Wody | ||
Дата: | 10.08.11 18:34 | ||
Оценка: |
здесь: http://geosoft.no/development/cppstyle.html29. Naming pointers specifically should be avoided.
Line* line; // NOT: Line* pLine; // NOT: LIne* linePtr;
Many variables in a C/C++ environment are pointers, so a convention like this is almost impossible to follow. Also objects in C++ are often oblique types where the specific implementation should be ignored by the programmer. Only when the actual type of an object is of special significance, the name should emphasize the type.