Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
nitnip18093yC++ has too much feature creep.
Last time I checked, when people talked about modern C++, they referred to C++14 even though C++17 was already a thing. C++20 compilers weren't really there yet but C++23 was already in the works. -
One thing, can't you program with a C++20 compiler like its still 1998? Did they break compatibility?
-
I have to disagree solely because 98 doesn't have move constructors. Don't get me wrong, they are a nightmare in themselves but jesus I would not want a C++ with only copy semantics holy
-
@happygimp0 that’s how many cpp projects become a nightmare.
Using macros to avoid duplication is compelling but very dangerous.
You should rather use other tools like templates. If not possible without macros, maybe leave the duplication in place because it might be the lesser evil. -
@Lensflare There are no Templates in C. And no, sorry, if you think about it before you code your code does not become a mess. I use generic macros in a single place: Where i convert a variable to a integer based on the type of the variable (at compile time of course) but that single place makes many other places more elegant and shorter.
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
Unskipp24So this happened last night... Gf: my favorite bra is not fitting me anymore Me: get a new one ? Gf: but it ...
-
sam966911Hats off to this lady .... I would have just flipped the machine
C++98 is better than C++20. Upvote if you
random
c++