3 ms·
Makes all these valid in Python: printf("printf %d\n", 10); fmt.Println("hello") cout << "Hello, C++!" << endl; Print["Hello from Mathematic
by scardine 9y ago
Makes all these valid in Python:
printf("printf %d\n", 10);
fmt.Println("hello")
cout << "Hello, C++!" << endl;
Print["Hello from Mathematica!"]
console.log("yes");
System.out.printf("java stuff\n");
Ada.Text_IO.Put_Line("Ada is cool")
Really funny, including the testimonials:
> Anyprint has many glowing reviews from its many satisfied users:
>
> * "omg pls"
> * "what is wrong with you"
> * "That's stupid and not useful."
> * "Please add my testimonial: "very accurate testimonials"."
> * "kragniz, please stop writing questionable python metamodules :v"
- josefx 9y ago> cout << "Hello, C++!" << endl; For the love of god, please stop using endl. It performs a flush when "\n" is both valid and all that you ever want. Also what happened to the std:: prefix?
- ben0x539 9y agoAre you saying you never want to flush? If flushing after every line is good enough for printf then it's gonna be good enough for me~
- josefx 9y agoBuffering of Cs stdout is implementation defined. For Linux it is only line buffered in an interactive terminal session and fully buffered otherwise. > Are you saying you never want to flush? 90% of the time not. The other ten percent include asking for user input, which causes an implicit flush since std::cin is linked to std::cout, and debugging an ugly heisenbug.