Skip to content

Commit

Permalink
Added type safety as a benefit of using real constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Jälevik committed Jan 5, 2015
1 parent e3054c9 commit c415190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Instead of preprocessor macro definitions (via `#define`), use actual constants:
static CGFloat const XYZBrandingFontSizeSmall = 12.0f;
static NSString * const XYZAwesomenessDeliveredNotificationName = @"foo";

Actual constants have more explicit scope (they’re not available in all imported/included files until undefined), cannot be redefined or undefined in later parts of the code, and are available in the debugger.
Actual constants are type-safe, have more explicit scope (they’re not available in all imported/included files until undefined), cannot be redefined or undefined in later parts of the code, and are available in the debugger.


### Branching Model
Expand Down

0 comments on commit c415190

Please sign in to comment.