kodecocodes / objective-c-style-guide

A style guide that outlines the coding conventions for Kodeco
http://www.raywenderlich.com/62570/objective-c-style-guide
3.1k stars 628 forks source link

1 liner if statements contradicts Golden Path #33

Closed icanzilb closed 10 years ago

icanzilb commented 10 years ago

@ndubbs

In Conditionals the guide says:

Not preferred:
if (!error) return success;

In Golden Path the guide says:

Preferred:
if (![someOther boolValue]) return;

These look essentially the same to me, I think in this case we are contradicting ourselves.

ndubbs commented 10 years ago

Fixed in e9ce91bbeb05ea49445a1fa22eeba9276aa0b111