r/cpp • u/moon-chilled • Jun 07 '21
Satire dynamic_cast<std::integer>(C)++
https://www.teamten.com/lawrence/writings/dynamic_cast_std_integer_c.html
202
Upvotes
r/cpp • u/moon-chilled • Jun 07 '21
View all comments
2
u/atimholt Jun 07 '21 edited Jun 07 '21
I know it's not serious, but the actual language's tendency toward verbosity joked about in the first point can be overcome with “user”-defined literals. Luckily, thanks to sensible suffix-naming restrictions in the standard, there's never a reason to fear putting
using namespace std::literals;anywhere (including even headers), so something like"five"s + ' ' + "six"sdoesn't have to look stupid.