A Philosophy of Software Design

H. S. Teoh hsteoh at qfbox.info
Sun May 24 14:51:59 UTC 2026


On Sat, May 23, 2026 at 06:42:43PM -0700, Walter Bright via Digitalmars-d wrote:
> The first sentence of the chapter "Define Errors Out Of Existence"
> says:
> 
> "Exception handling is one of the worst sources of complexity in
> software systems."
> 
> I suspect that adding EH to D was a mistake. It certainly was a
> mistake to build it into Unicode string handling. I'd like to see if
> we can figure a way to do Phobos without exception handling.

On the contrary, you yourself said back in the day that exception
handling was a good idea because it forced the program to stop upon
encountering an I/O error.  As opposed to a C program ignoring the
return value of printf(), et al, and blindly barging forward when an
unexpected condition like a disk full error started happening.


T

-- 
"If this is the solution, I want my precipitate back."


More information about the Digitalmars-d mailing list