Skip to content
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

pp: fixed to return value like 'p' #4283

Merged
merged 1 commit into from
Apr 18, 2017

Conversation

makenowjust
Copy link
Contributor

@makenowjust makenowjust commented Apr 13, 2017

Current implementation of pp returns nil always, but p returns printed value. It fixes to return printed value of 'pp' like p. I think its usability equals to p result value's.

Current implementation of pp returns `nil` always, but `p` returns printed
value. It fixes to return printed value of 'pp'.
@asterite
Copy link
Member

Nice! That way one can wrap an expression with p and have it return the same value, super useful for debugging purposes. Thank you!

@asterite asterite merged commit 8ad21bc into crystal-lang:master Apr 18, 2017
@asterite asterite added this to the Next milestone Apr 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants