4 ms·
I agree with that as well. I was just now writing a program to receive a command and perform an action, and sometimes it will receive invalid commands, or there
by StavrosK 12y ago
I agree with that as well. I was just now writing a program to receive a command and perform an action, and sometimes it will receive invalid commands, or there will be some error performing the action. In these cases, I just want it to ignore the errors and resume its loop.
With Python, you just wrap it in a try/catch and forget about it. With Go, I already wrote five error checks and I'm sure I haven't caught some condition that will make it crash. I have to say I prefer the exception style, at least in this case.