<div dir="ltr">I&#39;m going to create a formal proposal for this.</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 27, 2016 at 3:56 PM, Антон Жилин <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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I agree with replacing `default` with `else`.<div>First of all, `default` or `by default` is generally associated with some initial value, before any customization. `default` in `switch` is just a borrowing from C. A newbie programmer will better get used to `else` than to `default`.</div><div>Secondly, `switch` in Swift is almost the same as a sequence of `if-else-if` (not just a table, as in C). `else` in `switch` would create an association with last `else` in that chain.</div><div>Thirdly, `else` lines up nicely with `case`. You need to try it to feel the difference.</div><div>Go ahead and create a formal proposal for this, or shall I do this?</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>