C++26: Reflection, Memory Safety, Contracts, and a New Async Model (infoq.com)

30 points by birdculture 5 hours ago

3 comments:

by vsgherzi 10 minutes ago

Very cool stuff, excited to see some progress into memory safety for c++ but jeez. As i understand it, it requires me to do some meta programming to build guards around my program and ensure memory safety? Is that accurate or am I missing the mark here

by HeliumHydride 3 hours ago

The class(metaclass) {...} syntax is not part of C++ yet. It is part of a proposal targeted for C++29.

by nulltrace 3 hours ago

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.

Data from: Hacker News, provided by Hacker News (unofficial) API