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 of string interpolation does not support SE-0228 #295

Open
jansorg opened this issue Apr 19, 2024 · 0 comments
Open

Grammar of string interpolation does not support SE-0228 #295

jansorg opened this issue Apr 19, 2024 · 0 comments

Comments

@jansorg
Copy link
Contributor

jansorg commented Apr 19, 2024

Location

https://docs.swift.org/swift-book/documentation/the-swift-programming-language/lexicalstructure#String-Literals

Description

If I'm not mistaken, the current form of the grammar rules does not support SE-0228. For example the following would not be accepted:

"The price is $\(cost, format: "%.2f")"

Correction

The changes outlined at https://github.com/apple/swift-evolution/blob/main/proposals/0228-fix-expressiblebystringinterpolation.md should be supported.

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

No branches or pull requests

1 participant