Common Usage Patterns
While overall usage of gotos has been declining, there are still situations in some languages where a goto provides the shortest and most straightforward way to express program's logic (while it's possible to express the same logic without gotos, the equivalent code will be longer and often more difficult to understand).
These situations include: multi-level breaks, resource allocation/deallocation, error handling in C language, computed goto in Perl language.
Read more about this topic: Goto
Famous quotes containing the words common, usage and/or patterns:
“I have more in common with a Mexican man than with a white woman.... This opinion ... chagrins women who sincerely believe our female physiology unequivocally binds all women throughout the world, despite the compounded social prejudices that daily affect us all in different ways. Although women everywhere experience life differently from men everywhere, white women are members of a race that has proclaimed itself globally superior for hundreds of years.”
—Ana Castillo (b. 1953)
“...Often the accurate answer to a usage question begins, It depends. And what it depends on most often is where you are, who you are, who your listeners or readers are, and what your purpose in speaking or writing is.”
—Kenneth G. Wilson (b. 1923)
“Ive begun to appreciate the generational patterns that ripple out from our lives like stones dropped in water, pulsing outward even after we are gone. Although we have but one childhood, we relive it first through our childrens and then our grandchildrens eyes.”
—Anne Cassidy (20th century)