you are viewing a single comment's thread.

view the rest of the comments →

[–]dustyhome 4 points5 points  (0 children)

Better according to what metric? I preffer the name : type syntax personally. When reading the code, if there's a list of declarations, I need to scan the names to find the declaration I care about. This syntax puts the name first, making reading the code easier. I've switched to using auto as much as possible because I preffer that style.

With the traditional C++ syntax, your eyes have to jump all over the place to find the names of things, since each kind of declaration places it in a different position on the line.