-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
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
Conversation
There was a problem hiding this 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 Edit: I'm simply bad at reading.real_t
during the sweep. They're highlighted in other comments.
There was a problem hiding this 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.
06abc86
C#: Implement `InvariantCulture` on Variant strings
Thanks! |
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.