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
-
Then she tell you = is correct syntax for comparison , := is assignment in go. All C programmer r stuck in the past?
-
koin5887y@sunfishcc Pascal had this too and Pascal is past but C is state of the art for embedded and mc
-
Sourcerer537y@sunfishcc in Delphi it's the same and i hate it with every Atom of my body.
I hate it so much the Atoms i breath get infused with the hate thus it's kinda like a vending system but my hate for it is so eternal that it doesn't matter -
spacem18447yI didn't do c for a while but when disappointment is zero the assignment would return zero right? Isn't that false in c? So it would actually print "what else" for that particular level of disappointment?
-
Sourcerer537y@spacem i'd disagree.
Facing a terminal illness with great pain could be a reasonable reason.
Related Rants
So there is this girl who was trying to be cute and wrote a mock C code for me :
She wrote :
If(existence=disapointment)
printf("kill self");
else
printf("what else??");
And without hesitating I told her that her code had a fault in it and it would always print "kill self" no matter what the level of disappointment is. And asked her to fix it.
The way she fixed it was probably best described as the situation when you have no idea what you are doing and you don't try to understand either. (or was simply passive aggressive) :
If(existence=disapointment)
printf("kill self");
else
printf("kill self");
Honestly though I hope she was being passive aggressive because boy do I pity people who confuse between '=' and '=='
rant
assignment vs equality operator
c