3 ms·
D does this. Although it's not necessarily one or the other. C++ has the c preprocessor, templates, and constexpr. Rust has macros, but is looking at adding con
by nicoburns 8y ago
D does this. Although it's not necessarily one or the other. C++ has the c preprocessor, templates, and constexpr. Rust has macros, but is looking at adding const function evaluation too.
- steveklabnik 8y agoconst fn has already landed, though a minimal version whose powers we are expanding upon almost every release.