5 ms·
No, -foo is confusing and reduces readability.
by myko 13y ago
No, -foo is confusing and reduces readability.
- mpweiher 13y agoHow so?
- myko 13y agoIt is difficult to tell at a glance if -foo is returning something or just modifying state.
- mpweiher 13y agoNo it's not. If it didn't return anything, it would be -(void)foo; This is how C and by extension, Objective-C work: to indicate "nothing" you have to put in something, specifically "void".