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

Add a paragraph about pack iteration [SE-0408] #206

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

simanerush
Copy link
Member

Add information to the for-in statement that the expression may also be a pack expansion expression, according to SE-0408.

Marking this draft for now, but hoping to get this merged once #67594 lands.

@amartini51
Copy link
Collaborator

amartini51 commented Nov 13, 2023

Thanks for the draft!

I think this change is small enough to land in the reference on its own. Separately, we can add for loops to the the outline in #174, which discusses parameter packs to the guide.

EDIT: I see the linked implementation PR is merging into 'main', which would include this functionality in Swift 6. We'll want to keep this branch open until the feature is lined up to ship in the next Swift beta, which often means waiting for the implementation to be cherry-picked into the 'release/5.10' branch.

@simanerush simanerush marked this pull request as ready for review November 13, 2023 18:21
@simanerush
Copy link
Member Author

@amartini51 Great, thank you! I don't think there are any more things I'd like to add here, so marking this "ready for review"🙂

@amartini51
Copy link
Collaborator

If you don't mind, I'm moving this back to Draft until the compiler implementation lands. We wouldn't want to ship documentation for a feature that developers can't use yet.

@amartini51
Copy link
Collaborator

The compiler PR has been merged to 'main' so marking this ready for review. We may need to not actually merge it yet though — the SE proposal says it's for the next version of Swift after 5.10.

@amartini51 amartini51 changed the title [SE-0408] Add a paragraph about Pack Iteration Add a paragraph about pack iteration [SE-0408] Jan 4, 2024
@simanerush
Copy link
Member Author

Yes, let's wait until the feature is shipped🙂

@amartini51 amartini51 marked this pull request as draft January 4, 2024 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants