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
-
DirtEffect1070101d@Alice OMG I'd love to see a TÜV certification for programming languages. Germans, please make that happen!
-
electrineer30324101d@DirtEffect they do certify software tools like compilers, because of course they do. How else could they certify a system that is software controlled?
-
DirtEffect1070101d@retoor It is attempting to combine expressivity, performance, and downward compatibility. This is a worthy goal in principle, but since compatiblity is a must and performance its main selling point, the expressivity suffers and suffers greatly.
Take the rvalue reference args for instance:
void foo(A &&v); //Matches only rvalues
template<typename T>
void foo (A<T> &&v); // Matches only rvalues
template<typename T>
void foo (T &&v);
// Matches fucking anything from values, through pointers to Bjarne Stroustrup's balls. -
DirtEffect1070101d@retoor Or take polymorphism with strings:
void foo(const std::string &name);
void foo (int i);
...
foo("Hello world!");
Wanna guess which overload is called?
Of course its the int, because it is easier to convert a const char * to int than to std::string -
Demolishun34474100d@DirtEffect lol, I must be a shitty c++ dev. I had to look up what && does. Have not needed to use it before. Kinda cool what it does though:
https://stackoverflow.com/questions...
Our code base is older, but this is c++11 stuff. So it has been around for a while.
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
Imagine you have a car and it runs faster than other cars and needs less gasoline, but due to historical reasons the steering wheel is made of barbed wire, there's 8 different accelerator pedals for different streets, pushing the wrong one may lead to a crash, and instead of a driver's seat there's a huge wooden dildo sticking out of the floor.
This is, in a nutshell, what using the C++ type system feels like.
rant
c++