Avatar
norio_nomura 8/6/2019 6:44 AM
このPRに、Optional<Int>Int?の挙動が違う理由が書かれてるhttps://github.com/apple/swift/pull/12770 (edited)
In Swift 4, properties declared with a sugared Optional type, like Int?, have a default value of nil. This can be observed in two ways: Classes and structs get an implicit no-argument initializer ...