'goto', as an indicator of good language

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Fri Sep 9 08:15:32 UTC 2022


On Thursday, 8 September 2022 at 17:04:28 UTC, IGotD- wrote:
> Anyway, I haven't used goto a lot in C/C++ other than in "roll 
> back error handling". D manage to do this even better with with 
> its scope guards. How does other languages handle "roll back 
> error handling" (is there a better terminology for this?).

Exceptions?

Goto is useful when implementing state machines, the resulting 
code is often more readable.



More information about the Digitalmars-d mailing list