Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Const vs. constexpr vs. consteval vs. constinit in C++20. Parent comment
Again, templates are not a feature that is part of the close-to-the-metal part of C++.
What exactly does template metaprogramming in C++ allow you to do that you could not do in Rust? In the context of performance critical code?
Besides, Rust has generics and macros. The latter are arguable as powerful (if almost as cumbersome to debug) as C++ templates.
See also https://news.ycombinator.com/item?id=16283956
There are no comments on this comment yet.
Again, templates are not a feature that is part of the close-to-the-metal part of C++.
What exactly does template metaprogramming in C++ allow you to do that you could not do in Rust? In the context of performance critical code?
Besides, Rust has generics and macros. The latter are arguable as powerful (if almost as cumbersome to debug) as C++ templates.
See also https://news.ycombinator.com/item?id=16283956