What is the logic behind having a mutable and immutable versions of classes like NSArray, NSDictionary etc in Objective C?
Asked 2011-07-04T01:54:20.607
20
Why do common collection classes in Objective C like NSString, NSArray, NSDictionary etc have a mutable as well as an immutable version. What is the logic behind defining them separately? Performance, memory management or anything else?