<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=""><div><blockquote type="cite" class=""><div class="">On Dec 11, 2015, at 5:36 PM, Andrey Tarantsov via swift-evolution <<a href="mailto:swift-evolution@swift.org" class="">swift-evolution@swift.org</a>> wrote:</div><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">How about:</div><div class=""><div class=""><br class="">let v = if condition then “A" else “B"<br class=""></div></div></blockquote><div class=""><br class=""></div><div class="">I don't think introducing a separate "then" keyword is a good idea, two subtly different kinds of IFs would be confusing.</div><div class=""><br class=""></div>I guess you meant:</div><div class=""><br class=""></div></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class="">let v = if condition { "A" } else { "B” }</div></div></blockquote></div></div></blockquote><br class=""></div><div>I don’t really want to wade into this discussion, but if A and B are intended to be *expressions* instead of an arbitrary sequence of statements|decls|exprs, then a more consistent syntax would be:</div><div><br class=""></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>let v = if condition (A) else (b) </div><div><br class=""></div><div>The immediate problem with that is that juxtaposition of two expressions (condition, and A [with or without parens]) will lead to immediate syntactic ambiguity.</div><div><br class=""></div><div>-Chris</div><br class=""></body></html>