8 ms·
> AST based, hygenic macros, instead. Well and generics & traits. 99% of the places where C++ programmers use templates, they would use generics in Rust. `temp
by cristicbz 11y ago
> AST based, hygenic macros, instead.
Well and generics & traits. 99% of the places where C++ programmers use templates, they would use generics in Rust. `template std::vector<T>` <-> `Vec<T>` etc.
It's only the niche metaprogramming ability of C++'s templates that would be replaced with macros.
- steveklabnik 11y agoYes, thanks, that's a more complete answer.