|
aeiou posted:I have seen this a couple times in code at work and i fail to understand HOW people come up with this. And then afterword not realize that they could just have put all the statements in a row? Am I missing something here? Being in a loop, you get to make use of the break keyword, and you have an iterator variable (i) which indicates which step was achieved... I used it once or twice like that anyway.
|
# ¿ Mar 24, 2008 16:29 |
|
|
# ¿ May 2, 2024 23:38 |
|
DaTroof posted:Are you serious? I have trouble imagining how that's more practical than something like this: AI saw it as a way to avoid nesting an IF statement 6 levels deep. I never said it was good I just offered some possible reasoning for doing it. Also I am self taught so yea I used to do alot of weird and zany poo poo...
|
# ¿ Mar 24, 2008 17:19 |