iphone - Are there any reasons why I should prefer an NSArray instead of NSMutableArray? -
I think that when I use NSArray, I might be compelled for some time in the future whether " Complex "instead of one, there is no good reason to like this" primitive "one, which is unworthy?
Using a non-volatile structure in your code is not a hindrance - if it is detected That you need to modify it later, you can change to use a temporary one. It can be more of an obstacle if you have it in an external interface, then you are in the brain. The main advantage of non-disadvantage is that you get thread protection and it is easier to conceptualize the code - if you take the variability out of the equation, then you are less worried about the concern. This is the reason that we have the const constraints and so on - if you do not need to modify the data then it is better to come out.
Comments
Post a Comment