4 ms·
> If you were to handle the same error cases in Python that you gave examples for in Go, it would probably be even more verbose with the try/catch wrapped aroun
by je42 14y ago
> If you were to handle the same error cases in Python that you gave examples for in Go, it would probably be even more verbose with the try/catch wrapped around.
Not sure what you are talking about:
try:
datastore.Get(c, key, record);
viewTemplate.Execute(w, record);
catch e:
appError(e);
- wonderzombie 14y agoIs catching all exceptions really what you wanted to do here? A generic appError() is not equivalent to handling each possible failure more by type, as the Go example does.
- je42 14y agoMy bad. Good point. I looked at what he meant - not what he wrote. :)