3 ms·
Yeah, but is that a good thing? Complex template magic is hardly one of the good parts of modern C++.
by flohofwoe 2y ago
Yeah, but is that a good thing? Complex template magic is hardly one of the good parts of modern C++.
- lifthrasiir 2y agoRust generics are much underpowered than C++ templates in order to make them an integral part of type system. Many practical C++ programmers avoid excessive template magics for that reason and also for simplicity, and Rust's restriction is essentially its codification.
- still_grokking 2y agoBut it's not template magic. Not even something close. It's just nested generic types. How would you otherwise express all the constrains in a type?