5 ms·
I associate goto hatred with people who've experienced goto hell, but perhaps that's extrapolating from my own experience too much. My first programming langua
by MaulingMonkey 12y ago
I associate goto hatred with people who've experienced goto hell, but perhaps that's extrapolating from my own experience too much. My first programming language was BASIC - one baked into the ROM of an Apple II. Numeral based gotos were simply how you got around. I saw no problems with this - it's just how things were.
I've since been ruined by better programming languages. That gotos for cleanup is the lesser evil in C speaks more to the weakness of C than the virtue of gotos for me. I'm sure stockholm syndrome would eventually assuage my pain and I'd stop hoping for raptors if I went back to C...
For what it's worth:
I'm not a systems programmer, so chalk up another one for that association.
I was a little shocked by GNU software - the 50 line GCC if statement, not the cleanup goto pattern. But only a little - I've seen Lugaru's GameTick.cpp before it was cleaned up.