this post was submitted on 18 Mar 2024
11 points (100.0% liked)

C++

1755 readers
2 users here now

The center for all discussion and news regarding C++.

Rules

founded 1 year ago
MODERATORS
11
Reflection for C++26 (www.open-std.org)
submitted 7 months ago by lysdexic to c/cpp
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 7 months ago* (last edited 7 months ago) (2 children)

This might sound cynical, but C++ reflection seems to never happen. What's needed is perhaps a bare minimum that can be extended or even thrown away afterwards.

That's better than wasting another few decades to find out the community can't agree on C++ reflection, again

[–] Lmaydev 3 points 7 months ago

This is a proposal for a reduced initial set of features to support static reflection in C++.

[–] [email protected] 1 points 7 months ago* (last edited 7 months ago) (1 children)

That seems to be the committee policy these days - get the minimal version of a feature out of the gate first and then spend a decade extending it. Unfortunately sometimes they can't even agree on what the bare minimum should be, which also causes the burn out of proposal authors and proposals get stalled (like what happened with reflection, though it seems that it's in the works again).

[–] [email protected] 1 points 7 months ago

Reflection and contracts would be really great if they make their way. But... maybe I have to wait 20 years just to get a minimal version that can be totally done with macros anyway...

Nah, I'm just kidding, but...