<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Removing ?: is an excellent idea - but do we really need to replace it with anything new?<div class="">inline blocks seem to provide much more flexibility with the current language with no new keywords and a much clearer intent</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">let</span> myColor = (</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> match yourColor</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">case</span> .Blue: .Red</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">case</span> .Green: .Blue</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">case</span> .Red: .Blue</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">)</div></div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">let</span> myColor : <span style="font-variant-ligatures: no-common-ligatures; color: #4f8187" class="">Color</span> = {</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(79, 129, 135);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> </span><span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">switch</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""> (</span><span style="color: rgb(0, 0, 0);" class="">yourColor</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">) {</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">case</span> .Red: <span style="color: rgb(187, 44, 162);" class="">return</span> .<span style="color: rgb(49, 89, 93);" class="">Green</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">case</span> .Green: <span style="color: rgb(187, 44, 162);" class="">return</span> .<span style="color: rgb(49, 89, 93);" class="">Blue</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> <span style="font-variant-ligatures: no-common-ligatures; color: #bb2ca2" class="">case</span> .Blue: <span style="color: rgb(187, 44, 162);" class="">return</span> .<span style="color: rgb(49, 89, 93);" class="">Red</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class=""> }</div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo;" class="">}()</div></div><div class=""><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 7 Dec 2015, at 16:06, thorsten--- 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=""><div class="">I would indent multiline expressions, so that the assignment target stands out.<br class=""><br class="">let foo = if condition {<br class=""> function1()<br class=""> } else {<br class=""> function2()<br class=""> }<br class=""><br class=""><br class="">Same for the switch-expression.<br class=""><br class="">-Thorsten<br class=""><br class=""><blockquote type="cite" class="">Am 07.12.2015 um 04:11 schrieb Paul Ossenbruggen via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>>:<br class=""><br class="">let foo = if condition {<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>function1()<br class="">} else {<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>function2()<br class="">}<br class=""></blockquote>_______________________________________________<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></div></blockquote></div><br class=""></div></div></body></html>