2 ms·
Go does not have exceptions.
by vbezhenar 8y ago
Go does not have exceptions.
- pjmlp 8y agoSure it does, a primitive version via panic and recover.
- vbezhenar 8y agoThat's a poor substitute for exceptions IMO. Also almost all libraries including standard library use another approach via return error objects, so if one would want to use Go with panics as error handling, he would need to rewrite or wrap at least standard library. I would stick with Java at this point. Its library is terrible, but usable in the end.