Re:Const vs. constexpr vs. consteval vs. constinit in C++20
by estebank on Tuesday November 29, 2022 @12:47AM
(#33784114)
Are you baiting Walter for a reply? :)
Re:Const vs. constexpr vs. consteval vs. constinit in C++20
by JonChesterfield on Tuesday November 29, 2022 @09:14AM
(#33787814)
`clang++ -ffreestanding` (without a standard library) is growing on me as a C89 replacement. There's some annoyances like std::launder that you need to implement using compiler intrinsics but it's feasible.
Personally, I prefer to use C (C89) which is high-level enough to be reasonably productive, while at the same time not high-level enough to discourage the creation of overly complex code.
There are surprisingly frequent posts here from people who have written their own C compiler. I don't think I've seen a single C++ one yet.