Re:On the evolution of programming style: How far C++ has mo...
by jsnell on Monday March 26, 2012 @02:51PM
(#3758090)
That's just horrible. The readability of the function has been totally destroyed by conditional operator. What's the imaginary C++11-ish benefit?
[ Parent
| on HN ]
Re:On the evolution of programming style: How far C++ has mo...
by alexk7 on Monday March 26, 2012 @04:36PM
(#3758518)
With constexpr, if the parameters are constants, the whole computation can happen at compile-time. The line is somewhat harder to read for people not used to functional programming, but unfortunately, constexpr functions are required to have a single expression.