<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>When each case only takes up one line, it may look nice and concise. But what happens in the common case when your case takes up more lines and you indent your braces?</div><div><br></div><blockquote type="cite"><div><span>switch x {</span><br><span>case 0 { print(0) }</span><br><span>case 1 { print(1) }</span><br><span>case 2 { print(2) }</span><br><span>default { print("other”) }</span><br><span>}</span></div></blockquote><div><br></div><div><span style="background-color: rgba(255, 255, 255, 0);">switch x {</span></div><div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">case 0 {&nbsp;</span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">&nbsp; &nbsp; print(0)&nbsp;</span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">}<br>case 1 {&nbsp;</span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">&nbsp; &nbsp; print(1)&nbsp;</span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">}<br>case 2 {&nbsp;</span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">&nbsp; &nbsp; print(2)</span></font></div><div><span style="background-color: rgba(255, 255, 255, 0);">}</span></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">default {&nbsp;</span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">&nbsp; &nbsp; print("other”)&nbsp;</span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">}<br>}</span></font></div></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);"><br></span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">I think this looks much heavier and harder to read. &nbsp;All the braces detract from the important stuff</span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);"><br></span></font></div><div><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">Brandon&nbsp;</span></font></div><div><br></div><div><br></div><br><blockquote type="cite"><div><span></span><br><span>The colon syntax evokes a label, but the modern, complex `case` statements in Swift don’t act much like labels.</span><br><span>_______________________________________________</span><br><span>swift-evolution mailing list</span><br><span><a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a></span><br><span><a href="https://lists.swift.org/mailman/listinfo/swift-evolution">https://lists.swift.org/mailman/listinfo/swift-evolution</a></span><br></div></blockquote></body></html>