> On 16 May 2016, at 22:37, Neil Faiman via swift-users <swift-users@swift.org> 
> wrote:
> 
> Using the default Swift with Xcode 7.3.1.
> 
> It appears that you cannot use the implicit memberwise initializer with a 
> struct that has “let” properties with default values.
> 
> 

It’s not a default value, it is *the* value

> 
> I don’t believe that the Apple _The Swift Programming Language_ mentions this 
> restriction.

Chapter “The Basics”, section “Constants and Variables”

“The value of a constant cannot be changed once it is set”.




> 
>       Neil Faiman
> _______________________________________________
> swift-users mailing list
> swift-users@swift.org
> https://lists.swift.org/mailman/listinfo/swift-users

_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to