Hacker News new | ask | show | jobs
by cristicbz 3883 days 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.

1 comments

Yes, thanks, that's a more complete answer.