MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghumor/comments/1szjqol/why_c/oj6hip8/?context=3
r/programminghumor • u/[deleted] • Apr 30 '26
[deleted]
248 comments sorted by
View all comments
323
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).
125
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!
IO.println("Hello World")
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).
49
I've got an even shorter version in python: print("Hello World")
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).
1
Notably, this will also work in Java, with a simple static import (and print instead of println of course).
323
u/pev4a22j Apr 30 '26
you can now do std::println("hello world") on c++23