摘要:
元类型是指所有类型的类型。 元类型只能类型出现在类型标示位; 类型即能作为类型存在,出现在类型标示位; 也能作为变量存在,出现在元类型的变量位。 http://www.swift51.com/swift2.0/chapter3/03_Types.html#type_inheritance_claus 阅读全文
posted @ 2018-05-29 18:31
zzfx
阅读(354)
评论(0)
推荐(0)
摘要:
type(of:) Applied to an object: the polymorphic (internal) type of the object, regardless of how a reference is typed. Static/class members are access 阅读全文
posted @ 2018-05-29 17:55
zzfx
阅读(139)
评论(0)
推荐(0)
摘要:
类型与变量中的类型。只要有变量就可能有泛型的存在。 泛型是在确定类型的结构和函数基础上进行的二次抽象。目的是达到高代码可用。 是针对结构和函数中的类型进行的二次抽象。 算法和结构中的类型(可变)待定。 泛型:泛指类型、待定类型、不确定类型。与变量密切相关。 泛型,即“参数化类型”。--参数:自变量 阅读全文
posted @ 2018-05-29 14:49
zzfx
阅读(296)
评论(0)
推荐(0)
摘要:
In swift 3 and above (or !==) Checks if the values are identical (both point to the same memory address). Comparing reference types. Like == in Obj-C 阅读全文
posted @ 2018-05-29 11:27
zzfx
阅读(194)
评论(0)
推荐(0)

浙公网安备 33010602011771号