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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -