MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1xvuqmq/cppythrusgosharp/19so8155g32v4/?context=3
r/ProgrammerHumor • u/Depixelation • 12d ago
36 comments sorted by
View all comments
Show parent comment
1
Version 1 - The Classic:
#include <iostream> int main() { std::cout << "Hello world!"; return std::cout.fail(); }
Version 2 - The Modern Way:
import std; int main() { try { std::print("Hello world!"); } catch (std::exception const&) { return 1; } }
View all comments
Show parent comment
1
u/A_72_ 11d ago
Version 1 - The Classic:
Version 2 - The Modern Way: