fl42v@lemmy.ml to Programmer Humor@programming.dev · 5 个月前You can certainly change it. But should you?lemmy.mlimagemessage-square62fedilinkarrow-up1548arrow-down18
arrow-up1540arrow-down1imageYou can certainly change it. But should you?lemmy.mlfl42v@lemmy.ml to Programmer Humor@programming.dev · 5 个月前message-square62fedilink
minus-squareTheEntity@lemmy.worldlinkfedilinkarrow-up2·5 个月前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.
minus-squarefl42v@lemmy.mlOPlinkfedilinkarrow-up2·5 个月前I 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)