-
Notifications
You must be signed in to change notification settings - Fork 439
Include property names in debug description #1539
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
Include property names in debug description #1539
Conversation
@swift-ci Please test |
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.
🥳
85421cd
to
087bb4a
Compare
@swift-ci Please test |
@swift-ci Please test Windows |
1 similar comment
@swift-ci Please test Windows |
I prefer prefix child name.
You can easily write (Yes I'd like |
Awesome! I like the |
@swift-ci please test windows |
087bb4a
to
d4edeb8
Compare
Thanks for the feedback. I updated the PR to include the child name as a prefix and use |
@swift-ci Please test |
@swift-ci Please test Windows |
1 similar comment
@swift-ci Please test Windows |
…name-in-debug-description Include property names in debug description
…name-in-debug-description Include property names in debug description
This adds child the name of child properties in the debug description inside parenthesis. E.g. for the following source code
we print the following:
I also considered adding the child name in front of the type but found the notation using parentheses more readable. If the consensus is that the prefix notation with
:
is better, I’m happy to change it.