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

Culture dependency constant interpolated-strings #26750

Closed
Rubenisme opened this issue Nov 1, 2021 · 2 comments
Closed

Culture dependency constant interpolated-strings #26750

Rubenisme opened this issue Nov 1, 2021 · 2 comments

Comments

@Rubenisme
Copy link

Rubenisme commented Nov 1, 2021

The section on constant interpolated-strings is now saying:

The current culture may affect their string representation.

But in the proposal @333fred is saying:

keep it simple and avoid any dependence on ... potential culture dependence.

Am I missing something?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@Youssef1313
Copy link
Member

The article says:

The placeholder expressions can't be numeric constants because those constants are converted to strings at runtime. The current culture may affect their string representation.

So "The current culture may affect ..." part is an extension to the "why" placeholder expressions can't be numeric.

@Rubenisme
Copy link
Author

Ahh, thanks for clarifying. I misread it.

@dotnet-bot dotnet-bot added ⌚ Not Triaged Not triaged and removed ⌚ Not Triaged Not triaged labels Nov 1, 2021
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

4 participants