I was acquainted with numerous coding instructions, each of which gave recommendations on the name of "things". One specific C89 naming rule raised this question: it was explicitly forbidden to use the name "new" for a variable, because in C ++ it is a keyword.
It made me think about the following standards, the C99 is well documented, but the C11 is relatively new (2014). And the Standards Committee has several extensions that are still in the works.
Therefore, I am wondering if anyone can provide a list with keywords and their origin in order to create a set of naming rules, including reasons why several names should be avoided.
Although, strictly speaking, complex not a keyword, similar definitions are best included. And C ++ information is also welcome.
source share