[swift-evolution] Changing postfix "self" to something clearer like "type"

Jordan Rose jordan_rose at apple.com
Tue Dec 15 15:22:05 CST 2015

> On Dec 15, 2015, at 13:19 , Drew Crawford <drew at sealedabstract.com> wrote:
>> On Dec 15, 2015, at 12:24 PM, Jordan Rose via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> wrote:
>> (Alternately, "SomeType.staticType' not being the same as 'SomeType.dynamicType" seems weird.)
> Why?
> It is not strange to me at all that two different vars return two different things.  The names here seem especially clear--staticType being the type as inferred statically, while dynamicType being the runtime type.
> +1 for staticType

Sorry, what I meant is not that they have different values, but that they have different levels of meta:

  1> Int.self
$R0: Int.Type = Int
  2> Int.self.dynamicType
$R1: Int.Type.Type = Int.Type


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20151215/998ef661/attachment.html>

More information about the swift-evolution mailing list