East coast version is recommended in Vandevoorde et al’s fantastic “C++ Templates” book, so I tried to set this convention in a new green field project, and got told in clear terms to “write C++ like the industry standard, so they can read it.”
I don’t really care either way, I’d rather people just use const when they can since it’s often omitted.
What is most important is that a consistent style is used. First that tiger style is consistent in a codebase, then that it is consistent in the organization, and lastly that it is consistent with the language culture.
East coast version is recommended in Vandevoorde et al’s fantastic “C++ Templates” book, so I tried to set this convention in a new green field project, and got told in clear terms to “write C++ like the industry standard, so they can read it.”
I don’t really care either way, I’d rather people just use
const
when they can since it’s often omitted.What is most important is that a consistent style is used. First that tiger style is consistent in a codebase, then that it is consistent in the organization, and lastly that it is consistent with the language culture.