<div dir="ltr">A proposal for lenient subscripts has already been written, and a PR has been created on the swift-evolution repo and it has been closed for not being in scope. When it is in scope, it can be considered again. But in the meantime, the topic has been visited so many times that it's extremely unlikely for anything previously unsaid to be newly discovered at this point.<div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 13, 2017 at 7:11 PM, David Sweeris 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On Apr 13, 2017, at 15:01, Tony Allevato <<a href="mailto:tony.allevato@gmail.com">tony.allevato@gmail.com</a>> wrote:<br>
><br>
> My 2 cents: Giving users checked subscripts for arrays will do more harm than good for novice programmers—they're going to do the wrong thing with them.<br>
<br>
</span>I'm torn... On the one hand, I see the logic in this. On the other hand, I suspect many developers will end up writing such a function anyway (regardless of whether it's a good idea), and it'd be nice if there was a standard spelling.<br>
<br>
I realize this is not a convincing argument; I'm just thinking out loud a bit...<br>
<br>
Maybe I'll start a "StdBadIdeasLib" project, for all the ideas that could be implemented straightforwardly on top of the existing stdlib, but get rejected because they're bad ideas... Come to think of it, that's probably a bad idea itself (at least it'd be a well-named library, though).<br>
<br>
- Dave Sweeris<br>
<div class="HOEnZb"><div class="h5">______________________________<wbr>_________________<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/<wbr>mailman/listinfo/swift-<wbr>evolution</a><br>
</div></div></blockquote></div><br></div></div>