4 ms·
Maybe it's because I'm working a lot with V8, but that looks quite a lot like most C++ generics I've been looking at lately. Especially when working with concep
by commodoreboxer 2y ago
Maybe it's because I'm working a lot with V8, but that looks quite a lot like most C++ generics I've been looking at lately. Especially when working with concepts, it's easy to end up 5 or more nested angle brackets in.
- flohofwoe 2y agoYeah, 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?