3 ms·
No, not all const is superfluous. You don't want const-able method to be const. And const is a property of the declaration, not the definition. But constexpr is
by dataflow 5y ago
No, not all const is superfluous. You don't want const-able method to be const. And const is a property of the declaration, not the definition. But constexpr is superfluous. It's something the compiler can infer purely from looking at the definition, and it has little to no "design" value like const does.
- dataflow 5y ago> You don't want const-able method to be const. Edit, typo: I meant "You don't want every const-able method to be const."