<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">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 class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 2016-01-28, at 8:43:25, Ilya Belenkiy via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">+1<br class=""><div class="gmail_quote"><div dir="ltr" class="">On Wed, Jan 27, 2016 at 8:39 PM Joseph Essin via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class="">As a budding iOS developer, I thought it might be nice if Swift were to further improve on C's <i class="">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 class=""><br class=""></div><div class="">Here's a quick example of what it might be.</div><div class=""><span style="font-size:12.8px" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px" class="">switch </span><i style="font-size:12.8px" class="">value</i><span style="font-size:12.8px" class=""> </span><span style="font-size:12.8px" class="">{</span><br class=""></div><div class=""><div style="font-size:12.8px" class=""> case <i class="">expression</i> {</div><div style="font-size:12.8px" class=""> }</div><div style="font-size:12.8px" class="">}</div></div><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class="">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" class=""><br class=""></div><div style="font-size:12.8px" class="">Joseph Essin</div></div>
_______________________________________________<br class="">
swift-evolution mailing list<br class="">
<a href="mailto:swift-evolution@swift.org" target="_blank" class="">swift-evolution@swift.org</a><br class="">
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank" class="">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br class="">
</blockquote></div>
_______________________________________________<br class="">swift-evolution mailing list<br class=""><a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a><br class="">https://lists.swift.org/mailman/listinfo/swift-evolution<br class=""></div></blockquote></div><br class=""></div></body></html>