News for hackers. Stuff that matters.
Re:C++26: Reflection, Memory Safety, Contracts, and a New As... by HeliumHydride on Sunday April 19, 2026 @07:11PM (#47828554)
The class(metaclass) {...} syntax is not part of C++ yet. It is part of a proposal targeted for C++29.
Re:C++26: Reflection, Memory Safety, Contracts, and a New As... by nulltrace on Sunday April 19, 2026 @07:28PM (#47828674)
Right, metaclass is a ways off. But even without it, just the core reflection is going to save a ton of boilerplate. Half the template tricks I've written for message parsing were basically hand-rolling what `^T` will just give you.