Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Exception Handling

Name: Anonymous 2012-10-29 19:40

Don't fucking use exception handling.
Do or do not; there is no try. ESPECIALLY IN COMPUTING.

Handle your errors with error return codes.
No matter what these namby-pamby high-level languages try to pretend, it is an immutable fact that you cannot unring a bell. And these built-in routines can often cause more harm than good. Exception handling needs to be stigmatized more than goto; at least goto can make sense from a low-level perspective.

Name: Anonymous 2012-10-29 19:49

You should try using Go. It has wonderful multiple value returns that enable you to return error variables next to whatever it's supposed to return on success. It's wonderful!

Name: Anonymous 2012-10-29 20:46

Errors shouldn't pass quietly unless explicitly silenced. Error codes are too easy to ignore.

Name: Anonymous 2012-10-29 20:56

>>2
FIOC can also do this, and I'd rather use it (that's saying a lot considering how much FIOC sucks)

Don't change these.
Name: Email:
Entire Thread Thread List