All Questions
Tagged with error-handling c++
1 question
34
votes
9
answers
4k
views
Why would a language have a concept of undefined behavior instead of raising an error?
Certain constructs or conditions in programming just are not allowed. Languages such as Java or Swift handle these by raising an error when encountered. C and C++ on the other hand say 'Anything could ...