<div dir="ltr">Submitted: <a href="https://github.com/apple/swift-evolution/pull/176">https://github.com/apple/swift-evolution/pull/176</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Feb 27, 2016 at 4:39 PM, Ross O'Brien <span dir="ltr"><<a href="mailto:narrativium+swift@gmail.com" target="_blank">narrativium+swift@gmail.com</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">I'm going to create a formal proposal for this.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Sat, Feb 27, 2016 at 3:56 PM, Антон Жилин <span dir="ltr"><<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div><span class="">_______________________________________________<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></span></blockquote></div><br></div>
</blockquote></div><br></div>