Reading List
T? and Optional<T> Are Not the Same in Swift from Michael Tsai RSS feed.
T? and Optional<T> Are Not the Same in Swift
Nick Lockwood: I once again got bitten by the fact that T? properties in a Swift struct become optional parameters in the synthesized initializer, making it easy to accidentally omit a property that you meant to set. The workaround is either to use let instead of var, or to use Optional<T> instead of T? Swift […]