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

Add print macro #13336

Merged
merged 1 commit into from
May 22, 2023
Merged

Add print macro #13336

merged 1 commit into from
May 22, 2023

Conversation

jkthorne
Copy link
Contributor

This adds the print functionality to the macro language. This acts similary to print.

This adds the print functionality to the macro language.  This acts
similary to print.
@straight-shoota straight-shoota added this to the 1.9.0 milestone May 16, 2023
@straight-shoota straight-shoota merged commit 8e4e520 into crystal-lang:master May 22, 2023
@straight-shoota straight-shoota changed the title Add print macro Add print macro Jul 2, 2023
@asterite
Copy link
Member

asterite commented Jul 4, 2023

What's the use of this? Why not use puts or p?

@straight-shoota
Copy link
Member

puts and p print a line break, print does not. So I figure this would be useful for composing a line of macro output from multiple expressions.

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

4 participants