[swift-evolution] [Pitch] Several improvements points about extension and typealias

Douglas Gregor dgregor at apple.com
Wed Oct 5 11:33:11 CDT 2016


> On Oct 5, 2016, at 8:07 AM, Robert Widmann via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 
> 
> ~Robert Widmann
> 
> 2016/10/05 11:00、Cao, Jiannan via swift-evolution <swift-evolution at swift.org <mailto:swift-evolution at swift.org>> のメッセージ:
> 
>> 1. Allow extension specific dictionary
>> e.g.
>> extension Dictionary where Key == String, Value == String
>> or
>> extension Dictionary<String, String>
>> 
> 
> This was just committed by Slava yesterday.

Right, the first extension is now accepted by the Swift compiler, which is *awesome*.

The second one is still ill-formed, because the grammar doesn’t permit it. If we want to go there, it needs a swift-evolution proposal.

	- Doug


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161005/894695fb/attachment.html>


More information about the swift-evolution mailing list