Gollum@feddit.org to Programmer Humor@programming.dev · 9 個月前Lucky enough, I am C++ Developerimagemessage-square116linkfedilinkarrow-up1486arrow-down137
arrow-up1449arrow-down1imageLucky enough, I am C++ DeveloperGollum@feddit.org to Programmer Humor@programming.dev · 9 個月前message-square116linkfedilink
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up6·9 個月前Oh, 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·9 個月前Feels 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·9 個月前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.
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.