Hacker News new | past | comments | ask | show | jobs | submit login

I know. Python is one of the few languages to get exceptions right. There's a reasonably sane exception hierarchy, and if you catch something, you get everything in its subtree. The "with" clause and exceptions interact properly, so if you hit a problem closing a resource in a "with", the right stuff happens. Since Python is reference counted/garbage collected, you don't have the ownership problem of exception objects you have in C++. Python isn't big on RAII, so you don't have the exception-in-a-destructor problem (or worse, the exception during GC problem) unless you do something to force that.

Python is probably the best type declaration free language around. Trying to make it into something else damages the language. Python has become uncool, though, and so "cool features" are being added that don't quite fit.

These changes to Python are so big that this should have been called Python 4. But if Guido had done that, the reply from the big users would have been "Hell, no, we won't go!".




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: