C++ Reflection: Back on Track - David Olsen - Meeting C++ 2024
ฝัง
- เผยแพร่เมื่อ 9 ก.พ. 2025
- C++ Reflection: Back on Track - David Olsen - Meeting C++ 2024
Slides: slides.meeting...
Survey: survey.meeting...
C++ reflection has been a long-sought goal of users and language designers. But previous attempts have failed to get wide enough support to make it into the C++ standard or be widely implemented. A newly revised design has incorporated the lessons learned from previous proposals and is gaining momentum in the C++ standards committee.
This presentation will cover the current reflection proposal. I will go over how it works, how to use it, and how it compares to other reflection proposals and implementations. There will be plenty of code examples, compiled by real compilers that have already implemented the proposal, showing how reflection enables useful techniques that had been previously out of reach.
Attendees will come away from this session with an appreciation for the power and usefulness of reflection, and with the knowledge of how to start writing reflection-based code.
i hope they choose singe ^, double ^^ is just stupid. why should C++ be uglified for sake of some random dying language like ObjC.
Single ^ is an XOR. Yes XOR is a binary operator, but making unary ^ reflection would be confusing.
they are stuck to select ugly operator and names.
It’s better to have the capability in the now and syntactic sugar can be added later once we’ve built up a collective experience with using C++ Reflection in the wild over a decade of real world use I think.