<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;display:inline">`Any` is different from `Any?`. For example, if `Any` is an `Optional<T>`, `Any?` is an `Optional<Optional<T>>`.</div><div><font face="georgia, serif"><br></font></div><div><font face="georgia, serif">I<div class="gmail_default" style="font-family:georgia,serif;display:inline">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`.</div><br></font><div><div class="gmail_default" style="font-family:georgia,serif;display:inline"><br></div></div><div><div class="gmail_default" style="font-family:georgia,serif;display:inline">Zhaoxin</div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 27, 2016 at 6:43 PM, Седых Александр via swift-users <span dir="ltr"><<a href="mailto:swift-users@swift.org" target="_blank">swift-users@swift.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hello. I have little question about type Any on screenshot.<br><br>Why we need the type Optional Any????<br>In book we read, that Any may be any type. And any type is not include optionals in self?<br><br><br><br><br></div>
<br>______________________________<wbr>_________________<br>
swift-users mailing list<br>
<a href="mailto:swift-users@swift.org">swift-users@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-users" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-users</a><br>
<br></blockquote></div><br></div>