Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use goto occasionally to hop out of nested loops


I often use it even in plain loops, helps me avoid nesting ( https://github.com/ashvardanian/SimSIMD/blob/3e51bacb1b74a7e... ), but for most programmers it probably only associates with `goto cleanup;` used to destroy variables allocated earlier in the scope in case of an error.


I've often wondered what the goto haters think about Scheme continuations.




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

Search: