3 ms·
"Constexpr" is possibly the most hideous keyword in any programming language. My eyes vomit a little each time I read it. They could have just used "pure" like
by voldacar 5y ago
"Constexpr" is possibly the most hideous keyword in any programming language. My eyes vomit a little each time I read it.
They could have just used "pure" like in D, but this is C++, so that would be too sane and obvious.
- pjmlp 5y agoPolitics, check the outcome of the networking vote.
- hmfrh 5y agoIntroducing a new keyword means that all existing code that uses the new keyword as an identifier will break. That's why the `constexpr` keyword is deliberately weird. It's also why they reuse keywords like `using`.
- kevin_thibedeau 5y agoThey could just use the reserved keyword naming like the C committee does.