Syntax proposition: readability of templated type declarations

Posted by Knowing me knowing you on Stack Overflow See other posts from Stack Overflow or by Knowing me knowing you
Published on 2010-04-19T11:18:27Z Indexed on 2010/04/19 12:03 UTC
Read the original article Hit count: 171

Filed under:
|

I wonder if syntax as follows would be helpful in your opinion as a code readability improvent and self-commenting of code:

std::map<std::string name, std::vector<int> scores> myMap;  

In this example it clearly says and no other comment is needed, what for we are using myMap variable.

Looking forward to your opinions.

© Stack Overflow or respective owner

Related posts about c++

Related posts about syntax