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

C#: Implement InvariantCulture on Variant strings #89547

Merged
1 commit merged into from
Mar 24, 2024

Conversation

Repiteo
Copy link
Contributor

@Repiteo Repiteo commented Mar 16, 2024

Supercedes #83159

Changes the current behavior of the C# strings using formatting from the current culture to an invariant representation. It was discussed whether to take this approach or IFormattable to allow for string invariance, ultimately deciding that these strings aren't used in contexts where the culture information is relevant. If desired, IFormattable implementation can be revisited at a later point.

Copy link
Member

@paulloz paulloz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this 🙏
It has already been heavily discussed on Rocket.chat. Looks fine for me. I'm not sure that we usually do expression-bodied methods, but I don't really have a strong opinion. I think you missed a few of real_t during the sweep. They're highlighted in other comments. Edit: I'm simply bad at reading.

Copy link
Member

@raulsntos raulsntos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We discussed this to death and I think this PR represents the conclusion we reached, thank you so much for the work and being so patient.

Also, since this changes the behavior of these methods I'll add the breaks compat label so we remember to document it in the migration guide of whatever version this lands on.

@akien-mga akien-mga modified the milestones: 4.x, 4.3 Mar 23, 2024
@akien-mga akien-mga closed this pull request by merging all changes into godotengine:master in 06abc86 Mar 24, 2024
akien-mga added a commit that referenced this pull request Mar 24, 2024
C#: Implement `InvariantCulture` on Variant strings
@akien-mga
Copy link
Member

Thanks!

@Repiteo Repiteo deleted the dotnet/invariant-strings branch August 2, 2024 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants