Re:Swift System Is Now Open Source
by saagarjha on Friday September 25, 2020 @07:08PM
(#24594990)
I am unsure how your arrays link is relevant?
[ Parent
| on HN ]
You’re right. I had forgotten that the bridging between Swift Arrays and NSArray isn’t purely 1:1 (https://developer.apple.com/documentation/swift/array#284673...). (IIRC, it used to be)
Arrays still are not guaranteed to be contiguous in memory, though. If you want that, there’s ContiguousArray (https://developer.apple.com/documentation/swift/contiguousar...)