issue #1236 - there is no reason to use the Hungarian notation in C (#1326)

This commit is contained in:
Franz Hollerer 2019-02-14 20:02:35 +01:00 committed by Herb Sutter
parent fb1d4c9189
commit f7ef39f0d6

View File

@ -20704,7 +20704,7 @@ Names with types encoded are either verbose or cryptic.
prints // print a C-style string
printi // print an int
Requiring techniques like Hungarian notation to encode a type in a name is needed in C, but is generally unnecessary and actively harmful in a strongly statically-typed language like C++, because the annotations get out of date (the warts are just like comments and rot just like them) and they interfere with good use of the language (use the same name and overload resolution instead).
Requiring techniques like Hungarian notation to encode a type has been used in untyped languages, but is generally unnecessary and actively harmful in a strongly statically-typed language like C++, because the annotations get out of date (the warts are just like comments and rot just like them) and they interfere with good use of the language (use the same name and overload resolution instead).
##### Note