cm0002@lemmy.world to Programmer Humor · 2 days agoTell me the truth ...piefed.jeena.netimagemessage-square141linkfedilinkarrow-up11.16Karrow-down116
arrow-up11.14Karrow-down1imageTell me the truth ...piefed.jeena.netcm0002@lemmy.world to Programmer Humor · 2 days agomessage-square141linkfedilink
minus-squareethancedwards8linkfedilinkEnglisharrow-up7·1 day agoWhy is this a big mistake? I’m not a c++ person
minus-squarebitcrafterlinkfedilinkarrow-up4·24 hours agoThe mistake was that they created a type that behaves like an array in every case except for bool, for which they created a special magical version that behaves just subtly different enough that it can break things in confusing ways.
minus-squareethancedwards8linkfedilinkEnglisharrow-up3arrow-down1·23 hours agoCould you provide an example?
Why is this a big mistake? I’m not a c++ person
The mistake was that they created a type that behaves like an array in every case except for
bool
, for which they created a special magical version that behaves just subtly different enough that it can break things in confusing ways.Could you provide an example?