Gollum@feddit.org to Programmer Humor@programming.dev · 8 months agoLucky enough, I am C++ Developerfeddit.orgimagemessage-square85linkfedilinkarrow-up131arrow-down15
arrow-up126arrow-down1imageLucky enough, I am C++ Developerfeddit.orgGollum@feddit.org to Programmer Humor@programming.dev · 8 months agomessage-square85linkfedilink
minus-squareJankatarch@lemmy.worldlinkfedilinkarrow-up8·edit-28 months agoC++ lets you assign variables with <%%> in case your parents were killed by an equals sign.
minus-squaredwraf_of_ignorance@programming.devlinkfedilinkarrow-up2·8 months agoLook into batman too. Its like bat but for man pages
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up0·8 months agoWhat is happening there? Is it about templates? I can’t find any reference for that syntax.
minus-squareJankatarch@lemmy.worldlinkfedilinkarrow-up0·edit-28 months agoI mixed digraphs and initilization together.
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up1·edit-28 months agoOh, I didn’t know about digraphs at all. C++ is a really big language. And wow, that’s a well hidden footgun.
minus-squareulterno@programming.devlinkfedilinkEnglisharrow-up1·8 months agoFeels like this thing should require an extra flag in case of gcc in this day and age, or a separate compile-time defined variable, specifically for cases where you don’t want to require the flag.
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up2·8 months agoTo be fair, the biggest footguns are the trigraphs, and now that I tested those do require a flag in gcc. The digraphs are just hard to search, never used operator symbols.
C++ lets you assign variables with <%%> in case your parents were killed by an equals sign.
TIL about
bat! Looks awesome!Look into batman too. Its like bat but for man pages
What is happening there?
Is it about templates? I can’t find any reference for that syntax.
I mixed digraphs and initilization together.
Oh, I didn’t know about digraphs at all. C++ is a really big language.
And wow, that’s a well hidden footgun.
Feels like this thing should require an extra flag in case of
gccin this day and age, or a separate compile-time defined variable, specifically for cases where you don’t want to require the flag.To be fair, the biggest footguns are the trigraphs, and now that I tested those do require a flag in gcc.
The digraphs are just hard to search, never used operator symbols.