logoalt Hacker News

SuperV1234today at 11:15 AM3 repliesview on HN

Nah, many great features are extremely cheap. E.g. constexpr, templates, fold expressions, equality operator defaulting, concepts...


Replies

JamesTRexxtoday at 12:09 PM

Until you try to add / modify a feature of the software and run into confusing template or operator or other C++ specific errors and need to deconstruct a larger part of the code to find (if possible) out where it comes from and spend even more time trying to correct it.

C++ is the opposite of simplicity and clarity in code.

krecotoday at 11:31 AM

Yes, but they are still all hidden.

direwolf20today at 12:29 PM

constexpr means running code at compile time. template means duplicating lots of code lots of times. these are not cheap.

show 1 reply