owenzx at gmail.com
Tue Sep 27 06:11:03 CDT 2016
`Any` is different from `Any?`. For example, if `Any` is an `Optional<T>`,
`Any?` is an `Optional<Optional<T>>`.
n you code, since `dictionary` subscripts may `return nil`, the `?` is
for that. The `Any` is for the type of the `none-nil return value`.
On Tue, Sep 27, 2016 at 6:43 PM, Седых Александр via swift-users <
swift-users at swift.org> wrote:
> Hello. I have little question about type Any on screenshot.
> Why we need the type Optional Any????
> In book we read, that Any may be any type. And any type is not include
> optionals in self?
> swift-users mailing list
> swift-users at swift.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-users