I think improvements to switch, if, for, and ?: have been ruled out in the list of already requested but rejected changes. <span></span><br><br>On Thursday, 28 January 2016, Craig Cruden via swift-evolution <<a href="mailto:swift-evolution@swift.org">swift-evolution@swift.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Replacing a “:” with a set of curly brackets for each case would quickly clutter up the statement and make it look really ugly IMHO.<div><br></div><div>If the problem is that the expression is being lost because the symbol “:” does not stand out…. then simple formatting tends to solve that (i.e. if it is multiple lines then “:” on one line and the code on the next. </div><div><br></div><div><br><div><blockquote type="cite"><div>On 2016-01-28, at 8:43:25, Ilya Belenkiy via swift-evolution <<a href="javascript:_e(%7B%7D,'cvml','swift-evolution@swift.org');" target="_blank">swift-evolution@swift.org</a>> wrote:</div><br><div>+1<br><div class="gmail_quote"><div dir="ltr">On Wed, Jan 27, 2016 at 8:39 PM Joseph Essin via swift-evolution <<a href="javascript:_e(%7B%7D,'cvml','swift-evolution@swift.org');" target="_blank">swift-evolution@swift.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">As a budding iOS developer, I thought it might be nice if Swift were to further improve on C's <i>switch</i> statement by using curly brackets to denote a block instead of a colon. It seems like this would be more consistent with the language at large and make indention more intuitive.<div><br></div><div>Here's a quick example of what it might be.</div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">switch </span><i style="font-size:12.8px">value</i><span style="font-size:12.8px"> </span><span style="font-size:12.8px">{</span><br></div><div><div style="font-size:12.8px"> case <i>expression</i> {</div><div style="font-size:12.8px"> }</div><div style="font-size:12.8px">}</div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I apologize if this message isn't in the right format--I've not used a mailing list before.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Joseph Essin</div></div>
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="javascript:_e(%7B%7D,'cvml','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>
</blockquote></div>
_______________________________________________<br>swift-evolution mailing list<br><a href="javascript:_e(%7B%7D,'cvml','swift-evolution@swift.org');" target="_blank">swift-evolution@swift.org</a><br><a href="https://lists.swift.org/mailman/listinfo/swift-evolution" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br></div></blockquote></div><br></div></div></blockquote><br><br>-- <br> -- Howard.<br><br>