News for hackers. Stuff that matters.
Re:GOTOphobia Considered Harmful (In C) by bazoom42 on Monday February 27, 2023 @03:07AM (#34954158)
> Such as trying to avoid it in C for clean error handling, when there's no reason to avoid that.

Dijkstra would clearly disaprove of this use of goto. Buy he would blame the C language for making it necessary. Languages with structured cleanup (like the using clause in C#) does not need to use gotos for resource cleanup.

Dijkstras argument does not distinguish between short and long gotos or long or short functions. His argument applies to any use of goto.

There are no comments on this comment yet.