[swift-users] Why does the withUnsafeMutableBufferPointer closure take an inout parameter?

Geordie Jay geojay at gmail.com
Thu Oct 12 05:51:49 CDT 2017

Guillaume Lessard via swift-users <swift-users at swift.org> schrieb am Mi.
11. Okt. 2017 um 23:49:

> A lot of the MutableCollection implementation is in protocol extensions
> (swapAt, for example.)
> Should an additional version be written just for the Unsafe*BufferPointer
> types?

Makes sense to me, given the examples above. It doesn’t seem to be a high
priority task though, and one one suited to a contributor pull request
rather than taking resources away from the core team.

Would this kind of change need to go through swift evolution or is it a “no


> Guillaume Lessard
> _______________________________________________
> swift-users mailing list
> swift-users at swift.org
> https://lists.swift.org/mailman/listinfo/swift-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20171012/0d7d4e26/attachment.html>

More information about the swift-users mailing list