News for hackers. Stuff that matters.
Re:Swift System Is Now Open Source by Someone on Saturday September 26, 2020 @03:53AM (#24597142)
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...)

There are no comments on this comment yet.