Skip to content

Proposal for adding support for passing arrays to variadic functions #52

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed

Conversation

ArtSabintsev
Copy link

@jrose-apple requested that I make a proposal for this request.

My original bug report can be found here: https://bugs.swift.org/browse/SR-128

@radex
Copy link
Contributor

radex commented Dec 12, 2015

Only reservation is that splat should reuse the same syntax as declaration of a variadic parameter: [1,2,3]... -- one precedent for this syntax that I know of is CoffeeScript.

@ArtSabintsev
Copy link
Author

Sure, I'm fine with this change, or with the use of a new attribute, @variadic, inside of the declaration of the function and the call to the function when passing an array.

@DougGregor
Copy link
Member

This needs more discussion on the swift-evolution list first.

@DougGregor DougGregor closed this Dec 12, 2015
@swiftlang swiftlang locked and limited conversation to collaborators Dec 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants