[swift-evolution] [Proposal Draft] Literal Syntax Protocols

David Sweeris davesweeris at mac.com
Wed Jun 29 04:56:18 CDT 2016


I think +1 on the "nested namespace" idea, unless we'll (no pun intended) literally never use this for anything else.

- Dave Sweeris

> On Jun 29, 2016, at 01:31, Adrian Zubarev via swift-evolution <swift-evolution at swift.org> wrote:
> 
> How about:
> 
> public enum Syntax {
>      
>     public enum Literal {
> 
>         public typealias NilProtocol = ...
>         public typealias BooleanProtocol = ...
>         public typealias IntegerProtocol = ...
>         public typealias FloatProtocol = ...
>         public typealias UnicodeScalarProtocol = ...
>         public typealias ExtendedGraphemeClusterProtocol = ...
>         public typealias StringProtocol = ...
>         public typealias StringInterpolationProtocol = ...
>         public typealias ArrayProtocol = ...
>         public typealias DictionaryProtocol = ...
>     }
> }
> 
> extension Array : Syntax.Literal.ArrayProtocol { ... }
> 
> 
> -- 
> Adrian Zubarev
> Sent with Airmail
> _______________________________________________
> 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/20160629/af072f6b/attachment.html>


More information about the swift-evolution mailing list