3 ms·
I think the issue is only relevant when considering the years when programming languages began to have more nuanced instructions. For Assembly, goto is an essen
by ladyattis 5y ago
I think the issue is only relevant when considering the years when programming languages began to have more nuanced instructions. For Assembly, goto is an essential construct and you'll learn how to use it reliably as jump conditions. For C, it's a great way to get out of nested code that you couldn't avoid for the given problem. For more high level languages, continue and break are the 'goto' statements and they're used all over but they have built in restrictions which make them easy to use. Goto is just hard to master in use for some of us and it's okay to restrict ourselves to limited uses of it. I just don't know why it's become a mantra to say, "do not ever use goto or labels or jump conditions what so ever." It just seems odd to me.
- dec0dedab0de 5y agoFor more high level languages, continue and break are the 'goto' statements... I have never liked continue or break. It always felt like I messed something up if I found myself needing them.