Comment
Comment by secondcoming
That example isn't what OP is talking about, because it's obvious what the type of p is because it's on the same line:
whereas the following isn't clear and isn't necessarily correct without looking up what the return type of foo() actually is: