3 ms·
Ah! Cool! My original point was always supposing that held. Being that it doesn't then I agree with Swift being consistent here. Observing sharing using (===)
by tel 12y ago
Ah! Cool! My original point was always supposing that held. Being that it doesn't then I agree with Swift being consistent here.
Observing sharing using (===) is still dangerous, but presumably that can be saved by wrapping it in sufficient warning.
- josephlord 12y agoI wouldn't recommend using === in production (except for objects of classes) either but for this demonstration it let me show the copy on write without going to assembly. Glad we've reached a common understanding, I wasn't quite sure that I hadn't missed something.