[swift-evolution] [Proposal] Variadics as Attribute

Haravikk swift-evolution at haravikk.me
Sun Jul 17 11:31:57 CDT 2016

> On 15 Jul 2016, at 20:14, Tino Heth <2th at gmx.de> wrote:
> The last post in this thread is nearly a week ago... did you already apply for review?
> It would be a pity if this topic isn't finished, and I think a reduced variant that merely replaces "values: Int…" with "@variadic _ values: [Int]" shouldn't be a problem for Swift 3, leaving the possibility of adding all other features later.

I'm hoping to update the proposal and submit it in the next few days. I don't think there should be any need to restrict it to Int… to [Int]; unless there are technical challenges I don't believe there should be any reason that arbitrary iterator/sequence/collection types can't be supported as proposed, the main issues seem to be around how to resolve ambiguity when the type is Any, and whether the ability to call with an array should just be bolted onto the existing syntax (not my preference). I may move discussion of other collection types to its own section though, to make the core proposal as simple as possible, and leave it up to the core team whether to do that part.

More information about the swift-evolution mailing list