Reply to post: Re: use of 'goto'

Microsoft gives Windows 10 a name, throws folks a bone


Re: use of 'goto'

It's a necessary techinque in a deficient language.

An error exit is an exceptional condition and, given that language designers haven't yet found a way to prevent exceptional conditions being written, exceptions are the way to deal with that. "goto error_exit;" is a sad C epitaph.

Once or twice I've felt I needed to use goto in C, but I've spent all my life rewriting more famous people's brown stuff.

This is only a comment on your own response; basic is fundamentally steampunk and I completely get that. Of course basic can have exceptions as well; it's an interpreter.

John Bowler

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon

Biting the hand that feeds IT © 1998–2019