[phobos] Calling abort() on unhandled exception

Andrei Alexandrescu andrei at erdani.com
Fri Jul 30 16:19:13 PDT 2010


David Simcha wrote:
> What's wrong with stack traces in short scripts?  I use D all the time 
> for short (< a few hundred lines) scripts and sometimes I use Python 
> instead when I need a library that's not easily available in D or need 
> to share my code with Python hackers.  I honestly prefer Python's 
> "always print a stack trace" to D's "make me fire up a debugger" for 
> anything over ~50 lines (the point where I start to use functions 
> instead of just writing all my code inline in main()).

I didn't know Python prints the stack trace on exception, so my previous 
argument just got destroyed :o).

Andrei



More information about the phobos mailing list