Using "goto" when programming

While designing a state machine I had the through – this seems like a nice application for goto statements. In my excursions in to Linux kernel programming, goto is used a lot for error handling within a function. So I looked up a few discussions on using goto:

https://web.archive.org/web/20130521051957/http:/kerneltrap.org/node/553/2131

It is interesting that the Go language puts some restrictions on how you use goto:

https://golang.org/ref/spec#Goto_statements

1 Like

A post was split to a new topic: SIOT module changes