<div dir="ltr">Previous discussion:<div><br></div><div><a href="https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001393.html">https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20151207/001393.html</a></div><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 class="HOEnZb"><div class="h5"><br>
> On 27 Feb 2016, at 15:31, Ross O'Brien via swift-evolution <<a href="mailto:swift-evolution@swift.org">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 class="HOEnZb"><div class="h5">> _______________________________________________<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>
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>
</div></div></blockquote></div><br></div></div>