But how many line in a single for-loop? Clearly a lot of C code was written before people started thinking about how to organize code for support. I've been around long enough even have heard so called programmers ask why he wanted to make a function, wanting to just write the code.
People still ask why I use so many functions in C, why the variable names are descriptive, and why I write comments, ..etc. It's a wild world out there.
View all comments
Show parent comment
1
u/timonix Mar 02 '26
The only time I use go-to in C is for exception handling. And those absolutely can be used to leave for loops.
A lot of legacy C programs often end up as a mono file. I have seen files that are 100000 lines of code. Built up over decades