3 ms·
which just seems like a really weird use case, and smells like a goto. That's exactly what it's for. In C, this is a pretty common pattern: for( ... )
by userbinator 8y ago
which just seems like a really weird use case, and smells like a goto.
That's exactly what it's for. In C, this is a pretty common pattern:
for( ... )
if( ... )
goto found;
/* else not found */
...
found:
...
I remember when I had to use a bit of Python and lamented its lack of goto, then came across this "else loop" and thought "yes, they even thought of that."