isUniquelyReferenced looks pretty neat.
Conversation
protocol DynamicObjectGraphCopyOnWriteType {
func mutateObjectOrFail(mutationCode: (inout Self) -> Void) -> Bool
}
1
3
More seriously, it's not isCOWable because it's just isSafelyWritable. The "copy" is up to you.
1
1
4
1
2
Replying to



