-
Notifications
You must be signed in to change notification settings - Fork 923
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
Manual impl of Debug
on Token
#11958
Conversation
Hmm, I think I preferred the old one. The new representation isn't very self explanatory without e.g. knowing what
How about: |
Hmm, I'm not sure about not having any space in between so here's without space:
And, here's with space (I like this):
|
29a0ff9
to
2d018cb
Compare
To me, this has a bit too much spacing. It's unclear where the
I think I would prefer a combination of the two
|
I guess I'm fine with not having a space around |
With the space, the |
Yeah, I think that's good enough. |
6b9247a
to
b6853dd
Compare
|
b6853dd
to
67c4831
Compare
Summary
I look at the token stream a lot, not specifically in the playground but in the terminal output and it's annoying to scroll a lot to find specific location. Most of the information is also redundant.
The final format we end up with is:
<kind> <range> (flags = ...)
e.g.,String 0..4 (flags = BYTE_STRING)
where the flags part is only populated if there are any flags set.