[EMCpp]Item-5 Prefer Auto to Explicit Type Declarations
· β 4 min read
Despite some pitfalls described in EMCpp item 2 and 6, auto
variables are preferred for they must be initialized, are generally immune to type mismatches that can lead to portability or efficiency problems, can ease the process of refactoring, and typically require less typing than variables with explicitly specified types.