[swift-evolution] [pitch] Variadic Arguments should accept Arrays
Ricardo Parada
rparada at mac.com
Sat Mar 11 22:33:12 CST 2017
I read Haravikk's proposal a second time. I think I see the advantage of being able to use it with other types besides array.
I also found disambiguating with the trailing comma to be intuitive. On the other hand I did not find it so intuitive to use @variadic and @nonVariadic to disambiguate. I would say just pick the trailing comma.
Thanks
> On Feb 26, 2017, at 12:25 PM, Tino Heth via swift-evolution <swift-evolution at swift.org> wrote:
>
> I suggest to take a look at the topics "Variadics as an Attribute" and "array splatting for variadic parameters" and https://github.com/Haravikk/swift-evolution/blob/a13dc03d6a8c76b25a30710d70cbadc1eb31b3cd/proposals/nnnn-variadics-as-attribute.md.
>
> This is basically the other way round (arrays would accept variadic arguments), but it has the same effect — and more:
> You get rid of the odd "…" type, and it's also possible to use this with types besides array (set, iterator….)
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170311/bc73cbb4/attachment.html>
More information about the swift-evolution
mailing list