<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 2, 2016, at 10:10 PM, Brent Royal-Gordon via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">I have a pile of naming quibbles; rather than describe them all in prose (which turned into a mess), I've annotated parts of the "Full UnsafeRawPointer API" section in a gist: <</span><a href="https://gist.github.com/brentdax/8f4ed4decafc1d18c4441092baa13cfe" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">https://gist.github.com/brentdax/8f4ed4decafc1d18c4441092baa13cfe</a><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">>.</span><br style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""></div></blockquote></div><br class=""><div class="">I want to call this out separately because it’s not specific to my proposal and changes the existing UnsafePointer API.</div><div class=""><br class=""></div><div class="">Brent’s suggestion is to change `initialize(from:count:)` to `initialize(from:forwardToCount:)` for symmetry with the backward operations. It makes perfect sense to me, and it does a better job of conveying that a sequence of elements will be read out of “from”.</div><div class=""><br class=""></div><div class="">Any objections?</div><div class=""><br class=""><font face="Menlo" class=""> // I'm not happy with the asymmetry of these forwards/backwards <br class=""> // pairs.<br class=""> // <br class=""> // func initialize<T>(from: UnsafePointer<T>, count: Int)<br class=""> // -> UnsafeMutablePointer<T><br class=""> // func initializeBackward<T>(from: UnsafePointer<T>, count: Int)<br class=""> // -> UnsafeMutablePointer<T><br class=""> func initialize<T>(from: UnsafePointer<T>, forwardToCount: Int)<br class=""> -> UnsafeMutablePointer<T><br class=""> func initialize<T>(from: UnsafePointer<T>, backwardFromCount: Int)<br class=""> -> UnsafeMutablePointer<T><br class=""><br class=""> // More detailed thoughts on redesigining `move` methods in the <br class=""> // email, but for now:<br class=""> // <br class=""> // func moveInitialize<T>(from: UnsafePointer<T>, count: Int)<br class=""> // -> UnsafeMutablePointer<T><br class=""> // func moveInitializeBackward<T>(from: UnsafePointer<T>, count: Int)<br class=""> // -> UnsafeMutablePointer<T><br class=""> func moveInitialize<T>(from: UnsafePointer<T>, forwardToCount: Int)<br class=""> -> UnsafeMutablePointer<T><br class=""> func moveInitialize<T>(from: UnsafePointer<T>, backwardFromCount: Int)<br class=""> -> UnsafeMutablePointer<T></font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><font face="Menlo" class="">Andy</font></div></body></html>