Skip to content
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

[SR-9733] No Syntax for Array Splat #52167

Closed
swift-ci opened this issue Jan 23, 2019 · 0 comments
Closed

[SR-9733] No Syntax for Array Splat #52167

swift-ci opened this issue Jan 23, 2019 · 0 comments

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-9733
Radar None
Original Reporter lolicon (JIRA User)
Type Improvement
Status Resolved
Resolution Duplicate
Additional Detail from JIRA
Votes 0
Component/s
Labels Improvement
Assignee None
Priority Medium

md5: ecd6efcab99c0a5559c43d9cad709373

duplicates:

  • SR-128 Pass array to variadic function

Issue Description:

considering swift has provided a nice way to support variadic function,
there should be a syntax for array splat vis-a-vis, otherwise below code has no way to complete its goal

func print(_ items: Any...) { } 
func aliasOfPrint(_ items: Any...) {
     // no way to pass each element of items to print function as a separated argument
}
@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant