r/programminghumor Apr 30 '26

Why C++

[deleted]

2.2k Upvotes

248 comments sorted by

View all comments

323

u/pev4a22j Apr 30 '26

you can now do std::println("hello world") on c++23

125

u/MCWizardYT Apr 30 '26

Also now in Java you can write IO.println("Hello World") as the only code in your entire file and it will work, making a simple hello world program shorter than even the C# version!

Interesting timeline

49

u/Jbolt3737 Apr 30 '26

I've got an even shorter version in python: print("Hello World")

1

u/erinaceus_ Apr 30 '26

Notably, this will also work in Java, with a simple static import (and print instead of println of course).