mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 04:44:34 +03:00
This commit is contained in:
committed by
Herb Sutter
parent
fb1d4c9189
commit
f7ef39f0d6
@@ -20704,7 +20704,7 @@ Names with types encoded are either verbose or cryptic.
|
|||||||
prints // print a C-style string
|
prints // print a C-style string
|
||||||
printi // print an int
|
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
|
##### Note
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user