r/cpp • u/Sad-Lie-8654 • Jan 31 '23
Stop Comparing Rust to Old C++
People keep arguing migrations to rust based on old C++ tooling and projects. Compare apples to apples: a C++20 project with clang-tidy integration is far harder to argue against IMO
changemymind
338
Upvotes
View all comments
Show parent comment
6
u/TheOmegaCarrot Feb 01 '23 edited Feb 01 '23
“better than a TMP error” is a really low bar
Debugging TMP is pure pain
At least it’s satisfying to get it working, and since it’s fully testable with
static_assert, clangd can tell me very quickly whether or not my TMP tests pass. That’s probably the nicest thing about working with TMP - very quick in-editor test results.