Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Do
-
0.1, 0.9
-
None
-
Patch Available
Description
By declaring constants as 'static const' in the header file instead in of the implementation file we can use the constants in more places, such as in case statements of switch blocks.
Currently in Obj-C constants can only be accessed by using the static methods, which leads to some limitations.
The 'const' prefix only should apply to "primitive" constants (not structs or collections)