Comment on Bruce Eckel announces he's going to write Atomic PythonparentComments−stereosteve11y* Exceptions as part of control flow: And why not? Exceptions are a part of ordinary human logic. Why do you regard them as unclear or complex?For any given line it's hard to know if it will raise and if so what type of exceptions.I do like in Go that if an error can occur there will be a return value for it. Makes you much more aware of when things might go wrong.With python it seems to be more like "find out at runtime" our "read the docs and source for every function you call"
Comments
For any given line it's hard to know if it will raise and if so what type of exceptions.
I do like in Go that if an error can occur there will be a return value for it. Makes you much more aware of when things might go wrong.
With python it seems to be more like "find out at runtime" our "read the docs and source for every function you call"