Hacker News new | ask | show | jobs
by gumby 1978 days ago
> I've seen way too many programs with a single exception handler right at the base of the program, that just goes "whoops, something bad happened, bye!".

Regardless of one's view of execution handling, why would anyone even bother to do this? If you don't catch it and exit the program will exit anyway.

1 comments

To have cleaner logs maybe? Stack trace are often a mess to parse. Or at least correctly close resources such as DB connections before exiting?