News for hackers. Stuff that matters.
Re:Show HN: Python framework is faster than Golang Fiber by dymk on Tuesday January 10, 2023 @11:30AM (#34327361)
> Inversely, You can write an interpreter for C++, but features like `consteval` and `constexpr` are meaningless without ahead-of-time compilation.

No they're not, `constexpr` and `consteval` indicate where you can use an expression, not when in the compilation/interpretation pipeline they need to be evaluated. The spec does not say that C++ has to be compiled, nor does the spec say "A compiler must execute `constexpr` expressions prior to entering `main()`".

If you think this is just being pedantic, well, that's kind of the point of a spec.

There are no comments on this comment yet.