4 ms·
constexpr and static_assert make this a ton easier in C++. If your "unit tests" are static_asserts, the IDE will just highlight the broken parts. C++17 made th
by nwallin 5y ago
constexpr and static_assert make this a ton easier in C++. If your "unit tests" are static_asserts, the IDE will just highlight the broken parts.
C++17 made this minimally useful, and things got spectacularly better with C++20 and constexpr vector/string. 23 is shaping up to move even more of the standard library to constexpr.
- klipt 5y agoI wonder if we'll end up with something like https://www.circle-lang.org/ https://www.circle-lang.org/ which lets you use pretty much the entire C++ runtime language at compile time. It certainly makes heavily templated code way more readable.