C++ Logo

sg7

Advanced search

Re: Update: P1240R2 — Scalable Reflection

From: Jonathan O'Connor <jonathan.oconnor_at_[hidden]>
Date: Mon, 31 Jan 2022 23:48:58 +0000
On Monday, January 31st, 2022 at 22:10, Daveed Vandevoorde <daveed_at_[hidden]> wrote:
>
> Yes, see the subsection titled “Splicing identifiers”. Earlier versions of this paper did in fact propose such a capability. However, once we implemented it we found it raises some questions that require more experience and perhaps an alternative design. So, we have dropped it from P1240, but we still intend to pursue that capability (and also more general code injection).
>
My view on splicing and the whole reflection area is we should offer less functionality earlier, if, in so doing we don't hinder further extensions in future standards.

I'd be quite happy having P1240 and some kind of templated for in C++26, rather than waiting even longer to get fancier splicing ala D or Herb Sutter's proposal he made about 3 years ago.

Can I presume most people here have similar views?

Regards,
Jonathan

Received on 2022-01-31 23:49:01