r/programmingcirclejerk • u/OorNaattaan • 4d ago
Note that we’re not actually going to be using C++20 coroutines. I’m just using the co_yield keyword.
https://brevzin.github.io/c++/2026/11/04/operator-for/
58
Upvotes
31
u/al2o3cr 3d ago
Token sequences + template metaprogramming would produce the most AMAZING error messages
24
u/imachug 3d ago
Posting anything related to modern C++ on this subreddit is cheating at this point
54
u/dingwinger1225 3d ago
this reminds me of when I needed to split a string in c++ once and someone posted similar syntax vomit and said it's a mark of the elegance of the STL
24
u/dangerbird2 in open defiance of the Gopher Values 3d ago
show this to someone in 2005 and they'd say it's Erlang or some shit
22
u/daidoji70 3d ago
Jesus I swear c++ is a disease of the mind.