48
AleCx04
276d

C++ is a beautiful programming language

((foo<bar>)*(g++)).baz(!&qux::zip->ding());

Comments
  • 7
    Our.. Uh... Definition of beautiful seems to differ
  • 1
    @sharktits I was being one hundred % sarcastic with this :P
  • 2
    But it is beautiful :'(
  • 2
    @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!!
  • 8
    You can write bad code in any language. Please don't hate on c++ for stupid reasons.
  • 5
    Don’t misuse pointers and you won’t have code that looks like your cat ate a floppy disk and threw up.
  • 0
    @AlgoRythm I am not hating. Read the other comments before making stupid assumptions
  • 1
    @AleCx04 It wasn't a stupid assumption. Even if you're joking you chose c++ to make fun of. That's called hating.
  • 0
    @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.
  • 0
    @AleCx04 you're asking me to take a chill pill when you went straight to telling me I made "stupid assumptions"
  • 0
    @AlgoRythm lmao I was using your own words against you since you started it....."stupid reasons"..
  • 1
    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.
    :)
  • 0
    @irene I like you. You don’t censor yourself.
  • 0
    @irene thanks :D
Your Job Suck?
Get a Better Job
Add Comment