C++ Logo


Advanced search

[SG7] Paper: "The syntactic gap"

From: David Rector <davrec_at_[hidden]>
Date: Fri, 26 Mar 2021 15:00:02 -0400
Attached is a new paper addressing how the P2237/P2230 facilities might be expanded to be able handle the `Sum<T,U>` example discussed awhile back, and more generally subsume the capabilities of the "string-injection" approach, while avoiding its drawbacks.

Basically: `consteval {}` in more contexts (e.g. constructor initializer lists), and generalize the fragment syntax to allow for new fragment types (e.g. constructor initializer fragments).

I am attaching the markdown file as well for easier copying and pasting, e.g. to tweak the syntax of the examples for use in alternative proposals.

I haven’t yet figured out how to get a P number and put this on isocpp, but wanted to get this draft out before the weekend to give ample time for consideration before the upcoming meeting.



Received on 2021-03-26 14:00:17