3 ms·
I don't agree neither :). Exceptions don't necessarily lost context. At least in Python. In my previous job, whenever a python exception raise, the code will ca
by co_dh 10y ago
I don't agree neither :). Exceptions don't necessarily lost context. At least in Python. In my previous job, whenever a python exception raise, the code will catch it, with values of each variable, formatted in a beautiful html, and send as an email. You can never overestimate how much time it has saved us to debug. Go's approach to error handling remind me of the old COM days, while you handle error after each function call. I'm glad it's no longer popular.
- tkinom 10y agoAgree! I tried to move a program from Python to Go. Completely gave up on Go after comparing two language's implementation on exception. Python is just so much easier, cleaner. Go's implementation on JSON parsing is also.....
- pjmlp 10y agoEven WinRT, the 2nd coming of COM supports exceptions: Platform::COMException https://msdn.microsoft.com/en-us/library/windows/apps/hh710414.aspx https://msdn.microsoft.com/en-us/library/windows/apps/hh7104...
- IshKebab 10y agoPlease. Python doesn't even allow for specifying which exceptions a function throws.