[swift-evolution] [Review] SE-0107: UnsafeRawPointer API "initialize(from:forwardToCount:)"

Andrew Trick atrick at apple.com
Tue Jul 5 11:10:02 CDT 2016

> On Jul 5, 2016, at 11:05 AM, Xiaodi Wu <xiaodi.wu at gmail.com> wrote:
> I don't mind `initialize(from:forwardToCount:)`, but I do have trouble with Brent's suggestion of `initialize(from:backwardFromCount:)`. It adds ambiguity as to whether the pointer in the first argument points to the 0th element or the (count - 1)th element from which initializing is proceeding backward, a problem that does not exist with the currently proposed version `initializeBackward(from:count:)`. I don't find the symmetry wins compelling enough to overcome that additional ambiguity.

That’s a good point, but I think both forms are equally ambiguous.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160705/0d150d70/attachment.html>

More information about the swift-evolution mailing list