[swift-evolution] Notes from Swift core team 2016-03-15 design discussion

Thorsten Seitz tseitz42 at icloud.com
Wed Mar 23 12:36:47 CDT 2016

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


> Am 23.03.2016 um 17:38 schrieb Douglas Gregor via swift-evolution <swift-evolution at 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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160323/3deb7450/attachment.html>

More information about the swift-evolution mailing list