2 ms·
> I would hate to be running a release build with this The usual argument is that the program would be in an invalid state if the condition was reached, so the
by maleldil 4y ago
> I would hate to be running a release build with this
The usual argument is that the program would be in an invalid state if the condition was reached, so the only option is to crash. If it turns out it's a valid state, then the programmer can treat in a branch. I don't think tests would capture this because they would operating under the same assumption that such states cannot exist. Maybe fuzzy testing could surface an issue like this.