This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
[SUGGESTION] Compiletime / runtime separation or constexpr, consteval, template<> sickness. #374
Labels
You can continue the conversation there. Go to discussion →
Just to share my idea of
constexpr
.C++ has a strict separation between runtime and compiletime. All about compiletime was assisted with
<>
characters syntax beforeconstexpr
.And I have no idea why
constexpr
was introduced. It was easier to embrace<expression>
with<>
to specify that it is strict compile time.<i>: int
defines compile time variable,i.e. translates to
constexpr int i
Forces
<expression>
to be compile-time, i.e. translates toThe text was updated successfully, but these errors were encountered: