-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Let p
use inspect, pp
just pretty print values, and introduce p!
and pp!
which also show the expression to print
#6044
Conversation
…` and `pp!` which also show the expression to print
If examples used |
I just mean that they should be updated, because their comments show output incorrectly. |
Oh, I didn't see the output. Yeah, the should eventually be updated. |
Please @asterite use a letter instead of When I see a bang for me the method needs to be used we caution, because it has a special behavior. This isn't the case here. |
So... a = [1, 2, 3]
a.map! { |x| x + 2 } How is The |
Plus we can change it later if we want to, because it can almost never be a serious breaking change because it's only used for debugging. |
I dislike having 4 different methods, but 4 methods is what was agreed on in the issue. |
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.
Perfect!
Fixes #6019