Quote:
|
Seems like a minor nit, but for people trying really hard to understand the code, minor things like this can really hang one up.
|
Thanks for pointing that out -- we'll be sure to be more consistent in the future. For what it's worth, I prefer attaching the * to the type because, in my mind, the pointer is part of the type. It's not a SpreadsheetCell, it's a SpreadsheetCell*. However, that notion breaks down a bit in certain cases, like when you declare multiple values:
<code>
SpreadsheetCell* a, b; // actually declares 1 pointer and 1 object
</code>
<code>
SpreadsheetCell *a, *b; // does what you want, but moves the * formatting
</code>