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
-
C++ compares them fine. Just tested:
@highlight
{
int i = 1;
float f = 2.0;
qInfo() << bool(i <= f);
qInfo() << bool(i == f);
qInfo() << bool(i > f);
qInfo() << "";
i = 2;
qInfo() << bool(i <= f);
qInfo() << bool(i == f);
qInfo() << bool(i > f);
qInfo() << "";
i = 3;
qInfo() << bool(i <= f);
qInfo() << bool(i == f);
qInfo() << bool(i > f);
qInfo() << "";
} -
@Demolishun really? it's been 5 years since I touched C++ , probably you are right but maybe in the declarative way it doesn't, what about int and string?
-
@mrtehseen Running code does not lie.
This fails to compile:
@highlight
// i is still 3 here
std::string s("5");
qInfo() << bool(s > i); -
Yeah and get 1000 bugs because you assume how launguage handles those shit cases. C has more control.
-
I'm surprised people are even debating on this.
Python is a loose scripting language, purposefully throwing away efficiency for conviniences.
C++ is a strict pre-compiled language.
And no, packaging the interpreter into he binary does not count. -
hjk10156965yYep utter crap. This is as stupid as hiring a notary and complaining about all the rules that the local loan shark never complained about...
@MPKaboose try making a switch with a case null and case 0 see who is laughing now.
Related Rants
Meme is a meme!
joke/meme
really
c++
meme
python