|
|
|
|
|
by nuancebydefault
1117 days ago
|
|
I wrote that constexpr is useful. In fact that is just my point, a useful feature brings controverse. My take on it is that it is because the language is f up. constexpr, amongst other uses, cleans up code that was hard-to-understand templated code. Static assert cleans up other complicated constructs. Make_unique together with heaps of other primitives tries to clean up cumbersome memory management. [[fallthrough]] tries to solve the fact that break is easily forgotten, but this time not forgotten, but explicitly not there... You can name so many of new constructs that solve an earlier problem. If you went through all the cpp standards upgrades, and knew the history, you understand why all these improvements exist. If not, it all looks overly complicated, which in fact, if you look at it objectively, it is. |
|