[swift-evolution] Will these two features be included in Swift 3?

Daniel Steinberg daniel at dimsumthinking.com
Mon Dec 7 07:53:15 CST 2015


I would love to see this feature if it is possible. You can’t currently create an extension on Array<Double> so a common work-around is to add your functionality to SequenceType where you constrain the Generator’s Element to be of type Double - this means I’ve added functionality in places beyond where it belongs.

Daniel


> On Dec 7, 2015, at 6:40 AM, Tuur Anton via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Can you please add these features in Swift 3?
> 
> 1. The ability to do this:
> extension Array<Double> {
>     //extend arrays of doubles
> }
> 



More information about the swift-evolution mailing list