I actually do prefer the explicit variant without type inference as I find it 
much clearer to see what the typealias requires.

-Thorsten 

> Am 23.03.2016 um 17:38 schrieb Douglas Gregor via swift-evolution 
> <swift-evolution@swift.org>:
> 
> Clarification here: the example is
> 
> typealias DictionaryToStrings<T> = Dictionary<T, String>
> 
> Either we infer T to require Hashable, or we call this ill-formed and require 
> the user to write
> 
> typealias DictionaryToStrings<T: Hashable> = Dictionary<T, String>
> 
_______________________________________________
swift-evolution mailing list
swift-evolution@swift.org
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to