Hacker News new | ask | show | jobs
by wtetzner 3851 days ago
Don't you have to bounce around code to figure out what the TypeDef refers to anyway? Instead of using a well named TypeDef, wouldn't you get the same effect with a well named variable?
1 comments

Sometimes, but PassengerVec at least gives you a lot more indication (including whether it's a pointer or reference as they have to be declared along with it) than:

auto passengers = getPassengers();

Woah, that line immediately reminds me of JavaScript at work, and one of the reasons why I don't like it.