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
-
@LicensedCrime I like cpp, but come on man, is that really beautiful?? That is one of the ugliest examples that could be syntax in cpp that i could find!!
-
You can write bad code in any language. Please don't hate on c++ for stupid reasons.
-
Don’t misuse pointers and you won’t have code that looks like your cat ate a floppy disk and threw up.
-
@AlgoRythm I am not hating. Read the other comments before making stupid assumptions
-
@AleCx04 It wasn't a stupid assumption. Even if you're joking you chose c++ to make fun of. That's called hating.
-
@AlgoRythm making fun of something is not hating else I would have bitched about it on your jquery post. Even if you meant it seriously I realized that it is a joke or a funny way to go about something. Do the same and take a chill pill.
-
@AleCx04 you're asking me to take a chill pill when you went straight to telling me I made "stupid assumptions"
-
@AlgoRythm lmao I was using your own words against you since you started it....."stupid reasons"..
-
Wait, this wouldn't compile (I think; don't quote me on that). So the expression is:
!&qux::zip->ding()
If qux::zip->ding() evaluates (zip is a global variable in the namespace qux or a static member) then the expression would return a rvalue of which you try to take the address which is prohibited.
*(g++) would dereference whatever is stored in g and then add one to g. Which then is casted to foo<bar>.
This doesn't compile, I think because you can't cast values like that, but maybe I got the order of operation fucked.
Maybe a more knowledgeable person can explain why this works.
:)
Related Rants
C++ is a beautiful programming language
((foo<bar>)*(g++)).baz(!&qux::zip->ding());
rant
gorgeous
beaut
gorgeous but with a british accent