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

Languages with GOTO

Name: suomynonA 2007-07-17 12:49 ID:sJhm9IHJ

Is there a modern programming language which has GOTO function in it? I know basic from a millenia ago and recently learned java, and well I hated OOP, but I could live with it if I had goto.

Name: Anonymous 2007-07-19 23:45 ID:8wGLwsNB

dealing with error situations that don't happen very often, in such a way that the error handling code doesn't clutter up the main code path.
in that case, the code reads like regular exceptions, except all in the same function:

if(error)
   goto error_handle

...

error_handle:

~~~
is similar if not almost equal to

if(error)
   throw exception_a

...

catch (exception_a)

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