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

GOTO

Name: Anonymous 2007-01-29 2:03

My C++ professor stated that it is taboo if you use the GOTO statement in code. Tell me /prog/, is GOTO as bad as he says? What's your opinion on it?

Name: Anonymous 2007-01-29 10:28

Handling errors in functions in C where you need to clean up or deallocate stuff in the case of an error is butt-ugly and more confusing without using goto. Other than that, they're typically bad style and make code more confusing.

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