<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Swift currently encourages a lot of conditional code - especially when it comes to optionals. In most cases when you are computing etc. on an Optional you would expect that you would want an optional result and things to be able to use optionals. <div class=""><br class=""></div><div class="">In another language I generally just `map` one optional to another - which may not be the most readable code to some not use to optionals. </div><div class=""><br class=""></div><div class="">I was wondering if maybe an expression is not available that it would rewrite the syntax to map from one to another value. </div><div class=""><br class=""></div><div class="">So things like:</div><div class=""><br class=""></div><div class="">let n : Int? = 5</div><div class=""><br class=""></div><div class="">let r = n + 5</div><div class=""><br class=""></div><div class="">would actually compile as </div><div class=""><br class=""></div><div class="">let r = n.map <span style="font-family: Menlo; font-size: 11px;" class="">{$0 + </span><span style="font-family: Menlo; font-size: 11px; color: rgb(39, 42, 216);" class="">5</span><span style="font-family: Menlo; font-size: 11px;" class="">}</span></div></body></html>