> On Aug 18, 2016, at 12:54 PM, Adel Zhang <adelzh...@qq.com> wrote:
>
> Any other situation when implicit type casting works? It would be better if
> there is a reference or link.
>From the Swift Programming Language book, the section “Optional Type”:
The type Optional<Wrapped> is an enumeration with two cases, none and
some(Wrapped), which are used to represent values that may or may not be
present. Any type can be explicitly declared to be (or implicitly converted to)
an optional type. If you don’t provide an initial value when you declare an
optional variable or property, its value automatically defaults to nil.
—Jens
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users