<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>On May 17, 2016, at 7:03 AM, Jeremy Pereira <<a href="mailto:jeremy.j.pereira@googlemail.com">jeremy.j.pereira@googlemail.com</a>> wrote:<br><br></div><blockquote type="cite"><span></span><br><blockquote type="cite"><span>On 16 May 2016, at 22:37, Neil Faiman via swift-users <<a href="mailto:swift-users@swift.org">swift-users@swift.org</a>> wrote:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Using the default Swift with Xcode 7.3.1.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>It appears that you cannot use the implicit memberwise initializer with a struct that has “let” properties with default values.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><span></span><br><span>It’s not a default value, it is *the* value</span><br><span></span><br><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>I don’t believe that the Apple _The Swift Programming Language_ mentions this restriction.</span><br></blockquote><span></span><br><span>Chapter “The Basics”, section “Constants and Variables”</span><br><span></span><br><span>“The value of a constant cannot be changed once it is set”.</span><blockquote type="cite"><span></span></blockquote></blockquote><br><div>But:</div><div><br></div><div><div>“You can provide a default value for a stored property as part of its definition, as described in Default Property Values. <b>You can also set and modify the initial value for a stored property during initialization. This is true even for constant stored properties,</b> as described in Assigning Constant Properties During Initialization.” (Classes and Structures / Stored Properties)</div><div><br></div></div></body></html>