'goto' usage

Posted by Landon on Stack Overflow See other posts from Stack Overflow or by Landon
Published on 2008-08-23T18:18:04Z Indexed on 2010/05/11 9:54 UTC
Read the original article Hit count: 211

I've long been under the impression that 'goto' should never be used if possible. While perusing libavcodec (which is written in C) the other day, I noticed multiple uses of it. Is it ever advantageous to use 'goto' in a language that supports loops and functions? If so, why?

© Stack Overflow or respective owner

Related posts about best-practices

Related posts about language-agnostic