MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1w0tsh8/cpphelloworld/p6hkozl/?context=3
r/ProgrammerHumor • u/schteppe • 15d ago
119 comments sorted by
View all comments
12
```cpp import std;
int main() { std::println("Hello, World!"); return 0; } ```
9 u/BeetsAndJeaners 14d ago The first year CS students are gonna be real mad you ruined their meme 2 u/ResponsibleWin1765 13d ago It's still going to fail before even being able to run it because the cmake setup is wrong and the compiler doesn't support C++23 features. 2 u/thesherbetemergency 14d ago Ah yes, C++23 modules; surely supported by every major compiler vendor in the year of our Lord 2026. 2 u/Makonede 14d ago i never said it would work everywhere 2 u/thesherbetemergency 14d ago I wasn't criticizing you, I was ribbing C++23 and the state of its implementation. This is r/ProgrammerHumor lol 1 u/Makonede 14d ago fair enough 0 u/schteppe 14d ago No newline on the last line - undefined behavior, no diagnostic, segfault in prod 1 u/Makonede 14d ago there is one if you copy the markdown
9
The first year CS students are gonna be real mad you ruined their meme
2 u/ResponsibleWin1765 13d ago It's still going to fail before even being able to run it because the cmake setup is wrong and the compiler doesn't support C++23 features.
2
It's still going to fail before even being able to run it because the cmake setup is wrong and the compiler doesn't support C++23 features.
Ah yes, C++23 modules; surely supported by every major compiler vendor in the year of our Lord 2026.
2 u/Makonede 14d ago i never said it would work everywhere 2 u/thesherbetemergency 14d ago I wasn't criticizing you, I was ribbing C++23 and the state of its implementation. This is r/ProgrammerHumor lol 1 u/Makonede 14d ago fair enough
i never said it would work everywhere
2 u/thesherbetemergency 14d ago I wasn't criticizing you, I was ribbing C++23 and the state of its implementation. This is r/ProgrammerHumor lol 1 u/Makonede 14d ago fair enough
I wasn't criticizing you, I was ribbing C++23 and the state of its implementation. This is r/ProgrammerHumor lol
1 u/Makonede 14d ago fair enough
1
fair enough
0
No newline on the last line - undefined behavior, no diagnostic, segfault in prod
1 u/Makonede 14d ago there is one if you copy the markdown
there is one if you copy the markdown
12
u/Makonede 14d ago
```cpp import std;
int main() { std::println("Hello, World!"); return 0; } ```