<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Mmh, I think like the do while -&gt; repeat while change it makes sense, but not enough to displace the obvious meaning of the original... but then again, I lost back then...<br><br><div id="AppleMailSignature">Sent from my iPhone</div><div><br>Begin forwarded message:<br><br></div><blockquote type="cite"><div><b>From:</b> Andrew Trick via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt;<br><b>Date:</b> 18 July 2017 at 21:33:31 BST<br><b>To:</b> Taylor Swift &lt;<a href="mailto:kelvin13ma@gmail.com">kelvin13ma@gmail.com</a>&gt;<br><b>Cc:</b> swift-evolution &lt;<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>&gt;<br><b>Subject:</b> <b>Re: [swift-evolution] Pitch: Improved Swift pointers</b><br><b>Reply-To:</b> Andrew Trick &lt;<a href="mailto:atrick@apple.com">atrick@apple.com</a>&gt;<br><br></div></blockquote><blockquote type="cite"><div><meta http-equiv="Content-Type" content="text/html charset=utf-8"><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 18, 2017, at 11:36 AM, Taylor Swift &lt;<a href="mailto:kelvin13ma@gmail.com" class="">kelvin13ma@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><blockquote class="gmail_quote" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-style: solid; border-left-color: rgb(204, 204, 204); padding-left: 1ex;"><div style="overflow-wrap: break-word;" class=""><div class="">&gt; fix the ordering of the arguments in initializeMemory&lt;Element&gt;(as:<wbr class="">at:count:to:)</div><div class=""><br class=""></div><div class="">I think this ordering was an attempt to avoid confusion with binding</div><div class="">memory where `to` refers to a type. However, it should be consistent</div><div class="">with `UnsafePointer.initialize`, so we need to pick one of those to</div><div class="">change.</div></div></blockquote><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class=""></div><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class="">This would be a non-issue had we just been consistent with the rest of the stdlib and named this argument `<span style="font-family: monospace, monospace;" class="">repeating:</span>` instead of `<span style="font-family: monospace, monospace;" class="">to:</span>`. But `<span style="font-family: monospace, monospace;" class="">ptr.initialize(repeating: 255, count: 100)</span>` doesn’t read quite as naturally in English as `<span style="font-family: monospace, monospace;" class="">ptr.initialize(to: 255, count: 100)</span>` which is why I left this idea out of the proposal. Now that you mention the problem with `<span style="font-family: monospace, monospace;" class="">initializeMemory&lt;Element&gt;(as:</span><wbr class=""><span style="font-family: monospace, monospace;" class="">at:count:to:)</span>`, it might be a good idea to add this rename back into it.</div></div></blockquote></div><br class=""><div class="">I think `repeating` is much more clear.</div><div class=""><br class=""></div><div class="">-Andy</div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>