[swift-evolution] [Discussion] Can we make `.Type` Hashable?

Adrian Zubarev adrian.zubarev at devandartist.com
Fri Jul 1 09:18:47 CDT 2016


I’ll do it when we get the go for such additive proposals.



-- 
Adrian Zubarev
Sent with Airmail

Am 1. Juli 2016 um 16:15:48, Sean Heber (sean at fifthace.com) schrieb:

+1 here, too. Looking like someone needs to write a full proposal! :P  

l8r  
Sean  


> On Jul 1, 2016, at 9:11 AM, Tony Allevato via swift-evolution <swift-evolution at swift.org> wrote:  
>  
> +1. I've had to do this a couple times and ended up wrapping them in string interpolations, which makes me feel terrible.  
>  
> On Fri, Jul 1, 2016 at 6:26 AM David Sweeris via swift-evolution <swift-evolution at swift.org> wrote:  
> +1  
>  
>> On Jul 1, 2016, at 8:20 AM, Adrian Zubarev via swift-evolution <swift-evolution at swift.org> wrote:  
>>  
>> Additive question:  
>>  
>> • Can a type instance of a type SomeType.self SomeType.Type be Hashable?  
>> I really would want to use these in dictionaries or sets :)  
>>  
>> [Any.Type: ValueType]  
>>  
>> Set<Any.Type> // Union type universe  
>>  
>>  
>>  
>>  
>> --  
>> Adrian Zubarev  
>> Sent with Airmail  
>>  
>> _______________________________________________  
>> 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  
> _______________________________________________  
> 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/20160701/eae51816/attachment.html>


More information about the swift-evolution mailing list