2 ms·
Go is fairly strict in the use of goto: http://golang.org/ref/spec#Goto_statements http://golang.org/ref/spec#Goto_statements They have their use cases, and th
by kyrra 12y ago
Go is fairly strict in the use of goto: http://golang.org/ref/spec#Goto_statements http://golang.org/ref/spec#Goto_statements
They have their use cases, and this code seems like a fine use of it. Goto is taught as one of those things you should never use but it still has a purpose. If you look at any C code goto still used. You just have to make sure not to overuse it.