-
-
Notifications
You must be signed in to change notification settings - Fork 16.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-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]
Description
Activity
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-api[DEPRECATED; DO NOT USE][DEPRECATED; DO NOT USE]
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.