4 ms·
> Unnecessarily over-complicated. Most of the complexity comes from the fact that C++ trivially supports consuming most C code, but with its own lifetime model
by TuxSH 11mo ago
> Unnecessarily over-complicated.
Most of the complexity comes from the fact that C++ trivially supports consuming most C code, but with its own lifetime model on top, and that it also offers great flexibility.
Of course things become simpler when you ditch C source compat and can just declare "this variable will not be aliased by anyone else"
AFAIK C++'s constexpr and TMP is less limited than Rust's is.
- pjmlp 11mo agoAlso, with all its warts, I find easier to stay within C++ itself, instead of two macro systems, that additionally depend on an external crate.