Hacker News new | ask | show | jobs
by scharliee 1119 days ago
>Having the keyword for variables and constants is fine (i.e. top down and bottom up constraints need to be dictated) but you shouldn't need to write constexpr more than that.

This.

Constexpr should have been at the eval site, i.e something like:

  consteval auto x = foo();
And foo() is just a normal function, if the compiler can eval it at compile time - all good - if not, compiler error.