<div dir="ltr">on Mon, 06 Nov 2017 14:33:44 -0800 Slava Pestov <<a href="mailto:spestov@apple.com">spestov@apple.com</a>> wrote:<div><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
Right now, the following two declarations are equivalent:<br>
<br>
struct S {<br>
var x: Int?<br>
}<br>
<br>
struct S {<br>
var x: Int? = nil<br>
}<br>
<br>
That is, mutable bindings of sugared optional type (but not Optional<T>!) always have a default value of ‘nil’. This feature increases the surface area of the language for no good reason, and I would like to deprecate it in -swift-version 5 with a short proposal. Does anyone feel strongly about giving it up? I suspect most Swift users don’t even know it exists.<br></blockquote><div><br></div><div>value types only or classes as well?</div><div><br></div><div>i use the first form (and rely on it every here and there) and to me having to set to nil explicitly will amount to more visual noise in the source.</div><div><br></div><div>btw, what is "the surface area of the language"?</div><div><br></div><div>Mike</div><div><br></div></div></div></div></div>