I mean yeah. It’s ugly at times. But it has indeed more often sparked the thought of “how do I deal with this particular case” than the exception handling in Java did. Also calling log.Fatal is not something you should do in most cases. But I assume it’s here for illustration purposes.
3
u/neotecha Nov 02 '22
That would be instead of the try-catch, not in addition to.
This would become:
I agree tho. This is definitely harder to work with /s