3 ms·
I use goto occasionally to hop out of nested loops
by klysm 3y ago
I use goto occasionally to hop out of nested loops
- ashvardanian 3y agoI often use it even in plain loops, helps me avoid nesting ( https://github.com/ashvardanian/SimSIMD/blob/3e51bacb1b74a7ed3fa7bb037162276047192bab/include/simsimd/probability.h#L429 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.
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]
- Turing_Machine 3y agoI've often wondered what the goto haters think about Scheme continuations.