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 
> <[email protected]> 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
> [email protected]
> https://lists.swift.org/mailman/listinfo/swift-evolution
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to