<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=""><br class=""><div><blockquote type="cite" class=""><div class="">On Dec 4, 2015, at 10:57 AM, Alex Blewitt <<a href="mailto:alex.blewitt@gmail.com" class="">alex.blewitt@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 4 Dec 2015, at 16:44, Amir Michail <<a href="mailto:a.michail@me.com" class="">a.michail@me.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><div class="">I don’t want to remember if a variable is optional. I want to see it in the variable name.</div></div></div></blockquote><br class=""></div><div class="">Optionality is associated with the type, not the identifier. In addition, how would you deal with type aliases to optional constructs?</div><div class=""><br class=""></div><div class="">typealias MaybeString = String?</div><div class="">var maybe:MaybeString</div><div class=""><br class=""></div><div class="">This doesn’t ‘look’ like an optional value (so would it deserve a ? at the end) but if you have MaybeString? you now have an Optional<Optional<String>>. Should you have ?? there now?</div><br class=""><div class="">Alex</div></div></div></blockquote></div><br class=""><div class="">You would have:</div><div class=""><br class=""></div><div class="">typealias MaybeString? = String?</div><div class="">var maybe?:MaybeString?</div><div class=""><br class=""></div></body></html>