<div dir="ltr"><div>Thanks Dave. I couldn't find a better word before. That's why I had written a note there previously: "The label *safe* is just an idea, it might be improved as it does not sound very appropriate in this context". :-)</div><div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style=""><span style="font-size:small">I've updated the document removing references to safety. I don't really know if "lenient" is the best label for the subscript method, but it does sound more appropriate: </span><font color="#1155cc"><u><a href="https://github.com/luish/swift-evolution/commit/7edd2e0173586e8e2864f598a27f3e42c0f849c2">https://github.com/luish/swift-evolution/commit/7edd2e0173586e8e2864f598a27f3e42c0f849c2</a></u></font></div><div dir="ltr"></div></div></div></div></div></div></div></div></div></div></div><div class="gmail_extra"><br></div><div class="gmail_extra">New link to the proposal (file renamed):</div><div class="gmail_extra"><a href="https://github.com/luish/swift-evolution/blob/more-lenient-subscripts/proposals/nnnn-more-lenient-collections-subscripts.md">https://github.com/luish/swift-evolution/blob/more-lenient-subscripts/proposals/nnnn-more-lenient-collections-subscripts.md</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">- Luis</div><br><div class="gmail_quote">On Wed, Apr 27, 2016 at 9:26 PM, Dave Abrahams via swift-evolution <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><br>
on Wed Apr 27 2016, "Luis Henrique B. Sousa via swift-evolution" <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>> wrote:<br>
<br>
> Actually I had already modified the initial proposal to introduce those new<br>
> subscripts methods.<br>
><br>
> It is here now: (any help to improve that is very welcome)<br>
> <a href="https://github.com/luish/swift-evolution/blob/safer-collection-subscripts/proposals/nnnn-safer-collections-subscript-methods.md" rel="noreferrer" target="_blank">https://github.com/luish/swift-evolution/blob/safer-collection-subscripts/proposals/nnnn-safer-collections-subscript-methods.md</a><br>
><br>
> As the motivation and *problem* addressed remain the same, should I really<br>
> create a new thread?<br>
<br>
I dunno, but IMO you should change the title of this thread and the<br>
proposal and the keywords therein. It's not about making indexing<br>
safer, at least not in the sense we use the term “safety” around Swift.<br>
Array indexing is currently perfectly memory- and type-safe in the<br>
absence of race conditions. You're talking about making it more lenient<br>
with respect to bounds checks.<br>
<br>
> Best regards,<br>
><br>
> - Luis<br>
><br>
> On Wed, Apr 27, 2016 at 12:17 PM, Maximilian Hünenberger<br>
> <<a href="mailto:m.huenenberger@me.com" target="_blank">m.huenenberger@me.com</a>> wrote:<br>
><br>
> Do you change the proposal to introduce new (default) subscripts to<br>
> CollectionType/ RangeReplacableCollectionType?<br>
><br>
> subscript(safe index: Index) -> Element?<br>
> subscript(truncate range: Range<Index>) -> SubSequence<br>
><br>
> Maybe a new proposal would be appropriate (and a new thread).<br>
><br>
> Best regards<br>
> - Maximilian<br>
><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>
<span><font color="#888888"><br>
--<br>
Dave<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>
</font></span></blockquote></div><br></div></div></div>