-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Confusing Debug of chars #62947
Copy link
Copy link
Closed
Labels
A-iteratorsArea: IteratorsArea: IteratorsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-iteratorsArea: IteratorsArea: IteratorsC-enhancementCategory: An issue proposing an enhancement or a PR with one.Category: An issue proposing an enhancement or a PR with one.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Currently, the Debug of
Charsprints the underlying bytes, rather than the chars:Playground link
Returns:
As I was trying to work out what
charswas (whether it was unicode points or bytes or something else), the first output was v confusing - is there a reason we don't print something like the second case?Would you take a PR to change this?
I couldn't find any previous discussion on this - #49283 was the closest I could find.