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

Grammar doesn't include labelled string interpolation #282

Open
woolsweater opened this issue Jan 10, 2021 · 4 comments
Open

Grammar doesn't include labelled string interpolation #282

woolsweater opened this issue Jan 10, 2021 · 4 comments
Assignees
Labels
Content issue A problem in with the book's prose, code, or figures

Comments

@woolsweater
Copy link

Previous ID SR-14030
Radar rdar://problem/73014172
Original Reporter @woolsweater
Type Bug
Environment

Swift Book v5.3 on swift.org

Additional Detail from JIRA
Votes 0
Component/s
Labels Bug, Documentation
Assignee None
Priority Medium

md5: f52f6b8e5201224bbb536e153db0c38b

Issue Description:

The grammar rule for "interpolated-text-item" specifies a single expression inside parentheses:

interpolated-text-item → \ ( expression ) | quoted-text-item

but Swift actually accepts the equivalent of a tuple expression after the backslash, something like:

interpolated-text-item → \ ( interpolated-text-list ) | quoted-text-item
interpolated-text-list → interpolated-text-element | interpolated-text-element , interpolated-text-list
interpolated-text-element → expression | identifier : expression

@typesanitizer
Copy link

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@AbhishekSharma55
Copy link

Hi there,

I want to contribute to this project and take on this issue as my first task. Could you please assign it to me? I am excited to work towards resolving it and will keep the team updated on my progress.

Thanks

@AnthonyLatsis
Copy link

AnthonyLatsis commented Mar 6, 2024

Hello, @AbhishekSharma55,

Please feel free to work on this, but note that the language reference where this issue is seen lives in a different repository, https://github.com/apple/swift-book.


@xedin Please transfer this.

@AbhishekSharma55
Copy link

Thank you for pointing out the location of the language reference repository. I appreciate the clarification. I'll make sure to focus on this issue in the appropriate repository moving forward.

@amartini51 amartini51 transferred this issue from apple/swift Mar 6, 2024
@amartini51 amartini51 added the Content issue A problem in with the book's prose, code, or figures label Mar 6, 2024
@amartini51 amartini51 changed the title [SR-14030] Swift Grammar Reference does not include labelled string interpolation Grammar doesn't include labelled string interpolation Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content issue A problem in with the book's prose, code, or figures
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants