If you have a complicated function, and several exit points where you want to bail out, they why not just put a "label: bail" and goto it?
GOTO has a bad rap IMO. There's a place for it, and the author should probably be using it.
GOTO has a bad rap IMO. There's a place for it, and the author should probably be using it.
Because go-to is so infrequently a good choice and do frequently used when wrong that most languages don't have it at all, so it's not an option. It may be a reasonable. choice when available, especially if you aren't breaking structure and thereby making it harder to follow the logic.