-
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
Add a no argument case to println! #995
Comments
I like this idea. |
This seems logical to me. |
If we can call |
Please not. I always liked that macros look like a function. |
I already have a working implementation and it works well. I'll cc you to invite you show your exact idea at that time, @pyfisch . |
This was implemented by rust-lang/rust#36825 and stablized in 1.14.0. |
Currently,
println!
requires an empty string to print an empty line to stdout, i.e,println!("")
. I propose an empty argument case for convenience, i.e.,println!()
. This simply prints a newline.The idea stems from languages like Java (
System.out.println()
), Ruby (IO#puts
), etc. that do this.cc @bombless
The text was updated successfully, but these errors were encountered: