[swift-evolution] [Idea] Remove variadic parameters or pass an array of matching type through to the callee

Joe Groff jgroff at apple.com
Fri Feb 26 16:39:23 CST 2016


> On Feb 26, 2016, at 2:28 PM, Russ Bishop via swift-evolution <swift-evolution at swift.org> wrote:
> 
> We’ve been bitten by this bug now a couple of times where an open-ended variadic parameter ends up accepting an array as a single parameter rather than treating the array as having .count parameters. In some cases these are APIs we don’t control so it makes it difficult to have the compiler catch the errors.

This sounds like a bug. Do you have an example?

-Joe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20160226/c6fd9307/attachment.html>


More information about the swift-evolution mailing list