4 ms·
Probably not as you cant go to an arbitrary location especially a different call stack
by quickthrower2 3y ago
Probably not as you cant go to an arbitrary location especially a different call stack
- noobermin 3y agobut why not just use goto actually? You also cannot, at least in C++, not jump to an arbitrary location, it must be within the current function.
- Snild 3y agoOne could ask the same thing about `for` and `while`: why not just use `if`s and `goto`s? Because they're convenient and useful constructs. I don't know if `breakelse` is too, but maybe -- especially when part of a `?` operation.
- quickthrower2 3y agosometimes less flexibility is good.