<div dir="ltr"><div>Xiaodi, thanks for pointing that out. That's an unfortunate oversight.</div><div><br></div><div>Following on from Brent's comments, then... the proposal as is will probably be rejected as before. Since I seem to have acted too quickly in submitting it, do you think I should close it, or leave it so it can be edited? Would editing it be as simple as pointing its link to the discussion on allowing dot-keywords (since, apart from Tim's suggestion of Haskell's "otherwise", everything argued in this thread is in that one), or is more substantial editing required?</div><div><br></div><div>--Ross</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 27, 2016 at 9:06 PM, Jacob Bandes-Storch 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"><div dir="ltr">Previous discussion:<div><br></div><div><a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001393.html" target="_blank">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001393.html</a></div><div><div class="h5"><div class="gmail_extra">
<br><div class="gmail_quote">On Sat, Feb 27, 2016 at 12:52 PM, Rudolf Adamkovic 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">+1 (as always) for replacing "default" with "case _".<br>
<br>
It's consistent with other uses of "_", teaches about the concept of "_", simplifies the language vocabulary, frees "default" to be used as a case and it also looks better. :)<br>
<br>
R+<br>
<br>
Sent from my iPhone<br>
<div><div><br>
> On 27 Feb 2016, at 15:31, Ross O'Brien via swift-evolution <<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>> wrote:<br>
><br>
> Let's make this a topic of its own.<br>
><br>
> As mentioned recently in the '[Idea] Allowing most keywords after "."' thread, the 'default' keyword is only used as a keyword in switch statements, where it's synonymous with 'case _:'.<br>
> It's also the kind of word which appears commonly in enums.<br>
><br>
> So, why do we need to keep it as a keyword?<br>
><br>
> Disadvantages: there would be some breaking of code, but a migration tool should have little difficulty replacing 'default:' with 'case _:' in all cases.<br>
><br>
> Alternatives: replace 'default' with 'else'.<br>
</div></div><div><div>> _______________________________________________<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>
_______________________________________________<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>
</div></div></blockquote></div><br></div></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>