[phobos] Calling abort() on unhandled exception

Michel Fortin michel.fortin at michelf.com
Fri Jul 30 17:47:20 PDT 2010


Le 2010-07-30 à 19:19, Andrei Alexandrescu a écrit :

> 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).

And it's not just Python. PHP 5 too shows the stack trace for uncaught exceptions.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/





More information about the phobos mailing list