<div dir="ltr">On Wed, Aug 9, 2017 at 8:22 PM, Brent Royal-Gordon via swift-evolution <span dir="ltr">&lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><span class=""><blockquote type="cite"><div>On Jul 19, 2017, at 11:21 AM, Taylor Swift via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt; wrote:</div><br class="m_3950349050715723814Apple-interchange-newline"><div><div dir="ltr">What about `<span style="font-family:monospace,monospace">value:</span>`?<br><br><span class="m_3950349050715723814gmail-im">`<span style="font-family:monospace,monospace">ptr.initialize(value: value)</span>`<br></span><span class="m_3950349050715723814gmail-im">`<span style="font-family:monospace,monospace">ptr.initialize(</span></span><span class="m_3950349050715723814gmail-im"><span style="font-family:monospace,monospace"><span class="m_3950349050715723814gmail-im"><span style="font-family:monospace,monospace">value</span></span>: value, count: 13)</span>`<br></span><span class="m_3950349050715723814gmail-im">`<span style="font-family:monospace,monospace">ptr.initialize(as: UInt16.self, </span></span><span class="m_3950349050715723814gmail-im"><span style="font-family:monospace,monospace"><span class="m_3950349050715723814gmail-im"><span style="font-family:monospace,monospace">at: 0, value</span></span>: value, count: 13)</span>`</span></div><div class="gmail_extra"></div></div></blockquote><div><br></div></span><div>Doesn&#39;t read as a sentence. Consider how &quot;initialize to 3&quot; sounds different from &quot;initialize value 3&quot;.</div><div><br></div><div>Personally, I&#39;d go with:</div><div><br></div><div><span class="m_3950349050715723814Apple-tab-span" style="white-space:pre-wrap">        </span>ptr.initialize(to: value)</div><div><span class="m_3950349050715723814Apple-tab-span" style="white-space:pre-wrap">        </span>ptr.initialize(to: value, repeatCount: 3)</div><div><br></div><div>(Or just `repeat`/`repeating` if you don&#39;t feel like you need the word &quot;count&quot; to disambiguate.)</div></div></div></blockquote><div><br></div><div>Per Swift API naming guidelines, initializers don&#39;t have to read as sentences IIRC, and I&#39;d be inclined to grant a function named `initialize(_:)` the same courtesy.</div><div><br></div><div>For arrays, `repeating:` labels the repeating value, not the number of times it repeats, and the analogous labels here would indeed be `ptr.initialize(repeating: value, count: 3)`. I agree with the observations above that `repeating` looks weird if the default and most common use is 1, though; `value` is fine, I guess--or the Swiftism `pointee`?</div></div><br></div></div>