From Brent Simmons’s blog inessential:
So here are my two pleas:
- Use dot notation for properties.
- Do not use dot notation for non-properties.
This. So much this.1
I am in the process of imposing these rules, property by property, in a codebase I have recently inherited, for exactly the reason Brent suggests:2 avoiding the need for multiple searches in order to find all the usages of a single thing.
Future versions of Xcode could help with this, but in lieu of clang-y goodness, it’s amusing to me that Brent and I hit on exactly the same way of threading the needle.
Are there more of us out there, muttering under our breath during our find/replace sprees?