Re:Why I’m not leaving Python for Go
by hntester123 on Monday September 24, 2012 @02:40PM
(#4566214)
Heck, I commented in a hurry without thinking :( I did know about stack traces (used so many times), and you're right, of course. Thanks for pointing it out, though :). Now that I think of it more, since stack traces exist, there isn't even a need for that top-level try/except, for early prototypes. You can just write your main code, run it and let it fail, and fix the errors as you find them, by using try/except/finally etc.
[ Parent
| on HN ]
Yep.
I use the high-level error handler to let me know when a failure has some impact besides dumping a stack trace on my screen. E.g., failed web request, batch job barfing, etc. And to present the user with some reasonable "we're on it" thing.
Re:Why I’m not leaving Python for Go
by hntester123 on Monday September 24, 2012 @05:35PM
(#4567124)
Clear, and a good idea. Thanks.