new annotation or pragma to mark functions that are intended to be only used during compile time
Paul Backus
snarwin at gmail.com
Thu Feb 20 15:51:51 UTC 2025
On Thursday, 13 February 2025 at 14:56:42 UTC, Ilya wrote:
> # Proposal
>
> I'm proposing to add a new function annotation (or pragma) to
> mark functions that should never be executed at run time. I
> call the annotation `@ctonly` in this proposal, but I'm
> notoriously bad at naming things, so I'm open to naming
> suggestions.
In case you weren't aware, this exists in C++, and is called
[consteval][1].
[1]: https://en.cppreference.com/w/cpp/language/consteval
More information about the dip.ideas
mailing list