<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 &lt;<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>&gt; 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: &lt;</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="">&gt;.</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="">&nbsp;&nbsp;// I'm not happy with the asymmetry of these forwards/backwards&nbsp;<br class="">&nbsp;&nbsp;// pairs.<br class="">&nbsp;&nbsp;//&nbsp;<br class="">&nbsp;&nbsp;// func initialize&lt;T&gt;(from: UnsafePointer&lt;T&gt;, count: Int)<br class="">&nbsp;&nbsp;// &nbsp; -&gt; UnsafeMutablePointer&lt;T&gt;<br class="">&nbsp;&nbsp;// func initializeBackward&lt;T&gt;(from: UnsafePointer&lt;T&gt;, count: Int)<br class="">&nbsp;&nbsp;// &nbsp; -&gt; UnsafeMutablePointer&lt;T&gt;<br class="">&nbsp;&nbsp;func&nbsp;initialize&lt;T&gt;(from:&nbsp;UnsafePointer&lt;T&gt;, forwardToCount:&nbsp;Int)<br class="">&nbsp; &nbsp;&nbsp;-&gt;&nbsp;UnsafeMutablePointer&lt;T&gt;<br class="">&nbsp;&nbsp;func&nbsp;initialize&lt;T&gt;(from:&nbsp;UnsafePointer&lt;T&gt;, backwardFromCount:&nbsp;Int)<br class="">&nbsp; &nbsp;&nbsp;-&gt;&nbsp;UnsafeMutablePointer&lt;T&gt;<br class=""><br class="">&nbsp;&nbsp;// More detailed thoughts on redesigining `move` methods in the&nbsp;<br class="">&nbsp;&nbsp;// email, but for now:<br class="">&nbsp;&nbsp;//&nbsp;<br class="">&nbsp;&nbsp;// func moveInitialize&lt;T&gt;(from: UnsafePointer&lt;T&gt;, count: Int)<br class="">&nbsp;&nbsp;// &nbsp; -&gt; UnsafeMutablePointer&lt;T&gt;<br class="">&nbsp;&nbsp;// func moveInitializeBackward&lt;T&gt;(from: UnsafePointer&lt;T&gt;, count: Int)<br class="">&nbsp;&nbsp;// &nbsp; -&gt; UnsafeMutablePointer&lt;T&gt;<br class="">&nbsp;&nbsp;func&nbsp;moveInitialize&lt;T&gt;(from:&nbsp;UnsafePointer&lt;T&gt;, forwardToCount:&nbsp;Int)<br class="">&nbsp; &nbsp;&nbsp;-&gt;&nbsp;UnsafeMutablePointer&lt;T&gt;<br class="">&nbsp;&nbsp;func&nbsp;moveInitialize&lt;T&gt;(from:&nbsp;UnsafePointer&lt;T&gt;, backwardFromCount:&nbsp;Int)<br class="">&nbsp; &nbsp;&nbsp;-&gt;&nbsp;UnsafeMutablePointer&lt;T&gt;</font></div><div class=""><font face="Menlo" class=""><br class=""></font></div><div class=""><font face="Menlo" class="">Andy</font></div></body></html>