<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jul 26, 2016 at 7:56 PM, Boris Wang 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><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">We should consider SE-0111.<br>    The label of parameter is not part of function signature anymore.<br></blockquote><div><br></div><div>What are you driving at?</div><div><br></div><div>Per <a href="https://github.com/apple/swift-evolution/blob/master/proposals/0111-remove-arg-label-type-significance.md">SE–0111</a>, a function’s argument labels are no longer part of the function’s <i>type</i>, whereas per <a href="https://github.com/apple/swift-evolution/blob/master/proposals/0021-generalized-naming.md">SE–0021</a> they *are* part of its <i>name</i>. The whole discussion in this thread has been about *naming*, so I don’t see the relevance of bringing up SE–0111.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">Just a quick peek, what&#39;s your first impression for<br><br>   some.first(n) <br><br>Opt 1: the first element, who&#39;s value == n<br>Opt 2: the elements, who&#39;s index less than n<br></blockquote><div><br></div><div>Neither.</div><div><br></div><div>It is asking for, quite specifically, the first n elements.</div><div><br></div><div>Nevin</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br><div class="gmail_quote"><div dir="ltr">Ben Rimmington via swift-evolution &lt;<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>&gt;于2016年7月27日 周三07:29写道:<br></div><div><div class="gmail-h5"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
&gt; On 26 Jul 2016, at 16:15, Dave Abrahams wrote:<br>
&gt;<br>
&gt;&gt;&gt; b. they are given a recognizable domain-specific notation such as:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;  x.removeSubrange($+n..&lt;)<br>
&gt;&gt;&gt;  x.removeSubrange(..&lt;$-n)<br>
&gt;&gt;<br>
&gt;&gt; Does $ represent the start, the end, or either one depending on which<br>
&gt;&gt; side of the range we&#39;re on? Because if it&#39;s the third option, I think<br>
&gt;&gt; these two operations are actually inverted: the first is removing<br>
&gt;&gt; everything *except* the `prefix(n)`, and the second is removing<br>
&gt;&gt; everything except the `suffix(n)`.<br>
&gt;<br>
&gt; Wow, that was impressive!  With one stroke, you have just convinced me<br>
&gt; that we can&#39;t do this.  The fact that I got it wrong, along with other<br>
&gt; excellent feedback in this thread, kills my interest in using $ in this<br>
&gt; way.<br>
<br>
This would also conflict with one of the following:<br>
<br>
1. Allowing `$` for the Dollar library.<br>
<br>
        &lt;<a href="https://github.com/apple/swift-evolution/pull/354" rel="noreferrer" target="_blank">https://github.com/apple/swift-evolution/pull/354</a>&gt;<br>
<br>
2. Reserving `$` for the debugger.<br>
<br>
        &lt;<a href="https://github.com/apple/swift/pull/3004" rel="noreferrer" target="_blank">https://github.com/apple/swift/pull/3004</a>&gt;<br>
<br>
(The latter &quot;test and merge&quot; is failing for some reason).<br>
<br>
-- Ben<br>
<br>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote></div></div></div>
<br>_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
<br></blockquote></div><br></div></div>