Hacker News new | past | comments | ask | show | jobs | submit login

Go is fairly strict in the use of goto: 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.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: