[OT] - C++ exceptions are becoming more and more problematic

Walter Bright newshound2 at digitalmars.com
Thu Feb 24 22:43:24 UTC 2022


On 2/24/2022 12:34 PM, IGotD- wrote:
> Exceptions are nice because they go under the hood and we can catch them ... if 
> we want to. Problem of replacing with return values are for example indexing an 
> array and the ArrayIndexError exception.

Array overflows are a "terminate the program" thing, as they are program bugs. 
Program bugs are not in the purview of exceptions.


More information about the Digitalmars-d mailing list