3 ms·
Can you give an example of said "key core language facilities" that make some library implementable in C++, but not Rust? I can give an example of the opposite
by int_19h 8y ago
Can you give an example of said "key core language facilities" that make some library implementable in C++, but not Rust?
I can give an example of the opposite: language-aware macros. No amount of C++ TMP hackery can approach a well-designed Rust DSL.
- ncmncm 8y agoRust macros understand types now? Woohoo!
- int_19h 8y agoCan you clarify what you mean by "understand types"? The only thing I can think of in this context is compile-time reflection - but that's not in C++, either (yet). Ideally, can you give a concrete example of some abstraction that can be implemented in C++ with templates, but not in Rust with generics and/or macros?