Reputation: 170
Why do we prefer to add 'assign' attribute to C primitive properties? (bool, NSInteger, CGFloat ect)
Would the world end otherwise?
Upvotes: 0
Views: 34
Reputation: 122401
No the world would not end, as it's the default attribute for primitive types anyway.
I guess we do it to be more explicit about the memory management being applied to the property, in the same way we use keywords that are the default anyway (for example unsigned int
).
Upvotes: 1