|
|
|
|
|
by luk32
2918 days ago
|
|
The problem is that UB is invoked on runtime for particular inputs... And it silently makes program unreasonable after this point. That is not good. It's hard to reason about such a program, in other words can you trust results of such a program? How do you know whether your input caused Ub at some point or not? The burden of sanitizing the input is on the user (either programmer or the data provider). Checking this is usually a performance tradeoff, so it was decided not to be done by default. |
|