[swift-evolution] [Revision] [Pitch] Rename `T.Type`

Jose Cheyo Jimenez cheyo at masters3d.com
Sun Jul 24 11:47:41 CDT 2016


https://github.com/apple/swift-evolution/blob/master/proposals/0090-remove-dot-self.md

> On Jul 24, 2016, at 2:21 AM, Boris Wang <kona.ming at gmail.com> wrote:
> 
> just write code in playground:
> struct MyStruct {
> var t = 0
>> sizeof(MyStruct)
> 
> Compiler error:
> Missing '.self' for reference to metatype of type 'MyStruct'
> 
> The metatype is from swift it self!
> 
> What the hell was the .self?
> 
> 
> Jose Cheyo Jimenez via swift-evolution <swift-evolution at swift.org>于2016年7月24日 周日04:45写道:
>> I'm finding it really hard to see the advantage of this proposal with out reconciling the possibility of .self going away. I think this should be postponed after .self is reviewed in swift 4. Premature optimization imo. 
>> 
>>> On Jul 22, 2016, at 3:20 PM, David Hart via swift-evolution <swift-evolution at swift.org> wrote:
>>> 
>>> Where do these double generics come from? Never saw them...
>>> 
>>>> On 22 Jul 2016, at 17:54, Anton Zhilin <antonyzhilin at gmail.com> wrote:
>>>> 
>>>> 2016-07-22 18:51 GMT+03:00 David Hart <david at hartbit.com>:
>>>>> Isn't the solution to a lot of these issues allowing explicit generalization instead of this meta type business?
>>>> 
>>>> And what would you suggest for "double generics" in initializers?
>>>> ExampleType<Int><Double>()  // not good
>>> _______________________________________________
>>> swift-evolution mailing list
>>> swift-evolution at swift.org
>>> https://lists.swift.org/mailman/listinfo/swift-evolution
>> _______________________________________________
>> swift-evolution mailing list
>> swift-evolution at swift.org
>> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160724/a2e39f95/attachment.html>


More information about the swift-evolution mailing list