Am 08.06.2014 05:58 schrieb Rustom Mody:

Some people┬╣ think that gotos are a code-smell.
 ┬╣ I am not exactly those people.
A chap called E W Dijkstra made the statement: "Goto statement considered
harmful" and became famous.

And became widely misunderstood. If anybody would read the whole what he wrote, people would learn that he doesn't criticise the *use* of goto, but he wants the *replacement* of goto with something else (like exceptions).

As C doesn't have exceptions, goto is in many cases the simplest and easiest way of handling errors.

Essentially, you can write both good and bad code both with and without goto.


Reply via email to