News for hackers. Stuff that matters.
Re:C++26: Pack Indexing by foota on Friday January 24, 2025 @04:05PM (#42816923)
There's a way to "iterate" over parameter packs called fold expressions, but they're painful and look very weird.
Re:C++26: Pack Indexing by plorkyeran on Friday January 24, 2025 @04:33PM (#42817134)
I don't find them painful, but they're definitely extremely weird looking. The fact that they're "fold expressions" but are normally used with operator comma to sequence together things that want to be statements is a pretty strong sign that something went wrong in the design process.