|
|
|
|
|
by seivan
3927 days ago
|
|
It's a bug in a sense that NSArray, NSSet, NSDictionary (The mutable ones) should have the keywords setup when they are ported with Swift headers. Naturally, that would be manual work though. Like the way they added nonnull, nilable or whatever its called to Obj-C |
|
The "bug," if there can be said to be one at all (I don't see it), is that Swift collection types are value types, while Objective-C collection types are reference types. But given this difference, the lack of `mutating` on the mutating methods makes complete sense, and adding it would be bizarre, since it would be an error if you did it in your own code.