-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Use "..."u8 in dotnet/runtime #67733
Conversation
Tagging subscribers to this area: @dotnet/area-meta Issue Detailsnull
|
ab7b246
to
41d58ba
Compare
Thank you for pointing out the omission. I can add it here, and also search for anything else like this I may have missed. I didn't pay attention to byte[]s being filled with seemingly arbitrary numbers, as opposed to (byte)'char'. |
I'm surprised there is nothing in CoreLib. |
Do you know of any there? This was search/replace based on specific patterns. I'm sure there are others with more complicated patterns. |
Most of those aren't strings, e. g. the first ones are number of days in each month. We shouldn't use u8 to encode arbitrary data. |
I didn't say to make them |
Ah, thanks :-) |
Perhaps I misunderstood the feature as I was thinking that it could help with strings like runtime/src/libraries/System.Private.CoreLib/src/System/Globalization/DateTimeFormat.cs Line 146 in 322ea09
|
The feature is basically that you write |
I'm going to close this for now and will redo it once we have a compiler that adapts to recent design decisions around u8. |
No description provided.