Why Any.Type and not AnyObject


(James Campbell) #1

It seems to me that it's confusing to have AnyObject, Any but Any.Type when wanting to store a type.
What's the difference in Any and AnyObject and why do t we have AnyType? This trips me up a lot

···

Sent from Supmenow.com


(Dave Abrahams) #2

James, this is really the wrong list for such questions. I suggest
swift-users.

Regards,

···

on Thu Feb 25 2016, James Campbell <swift-evolution@swift.org> wrote:

It seems to me that it's confusing to have AnyObject, Any but Any.Type when wanting to store a type.
What's the difference in Any and AnyObject and why do t we have AnyType? This trips me up a lot

--
-Dave