fl42v to Programmer Humor@programming.dev · 9 months agoYou can certainly change it. But should you?imagemessage-square58fedilinkarrow-up1538arrow-down18
arrow-up1530arrow-down1imageYou can certainly change it. But should you?fl42v to Programmer Humor@programming.dev · 9 months agomessage-square58fedilink
minus-squareTheEntity@lemmy.worldlinkfedilinkarrow-up2·9 months agoThe very notion of “less of a UB” is against the concept of UB. If you have an UB in your program, all guarantees are out of the window.
minus-squarefl42vOPlinkfedilinkarrow-up2·9 months agoI mean, changing a const is itself a questionable move (the question being whether the one doing it is insane)
The very notion of “less of a UB” is against the concept of UB. If you have an UB in your program, all guarantees are out of the window.
I mean, changing a
const
is itself a questionable move (the question being whether the one doing it is insane)