Re: [swift-users] Extending Arrays of specific type, and specialization

2016-11-25 Thread Matt Whiteside via swift-users
> On Nov 22, 2016, at 03:04, Tino Heth via swift-users > wrote: > > Hi Rick, > > as evolution is somewhat paused, swift-users seems to gain more traction ;-) > > Imho the most natural would be > extension Array { > … > } > > I hope to see this addition included when the topic is discussed ag

Re: [swift-users] Extending Arrays of specific type, and specialization

2016-11-25 Thread Karl via swift-users
> On 23 Nov 2016, at 01:50, Hooman Mehr via swift-users > wrote: > > For example, this reduces the six variants of sum to two: > > public protocol ContiguousBufferedArray: RandomAccessCollection { > > func withUnsafeBufferPointer(_ body: > (UnsafeBufferPointer) throws -> R) rethrows

[swift-users] Is there any talk about overloading enum cases with associated values?

2016-11-25 Thread Adrian Zubarev via swift-users
I’m trying to find any talk on the evolution list about the overloading of enum cases with associated values. Has this already been discussed? Any technical reasons why we don’t have this already? Anyone else would want this feature? enum MyEnum { case a. // <—\ //