Saagar Jha
(replying to Wolf480pl)
@wolf480pl Yeah my past discussion with people I think the viewpoint I have aligned with this one is that trapping should be a permitted implementation-defined behavior and for clearly broken constructs the only permissible behavior
Wolf480pl
(replying to Saagar Jha)
@saagar I don't know enough / haven't thought about it enough to have a definitive opinion on what should be done with UB.
But I kinda like zig's Debug / ReleaseSafe / ReleaseFast build modes.
Debug and ReleaseSafe trap on UB, ReleaseFast assumes no UB and optimizes as much as it can.