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

Matt Whiteside mwhiteside.dev at gmail.com
Fri Nov 25 11:54:32 CST 2016


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

I agree.  This syntax:

extension Array<Double> { … }

seems simpler than

extension Array where Element == Double { … }

-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20161125/739d7043/attachment.html>


More information about the swift-users mailing list