3 ms·
but 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.
by noobermin 3y ago
but 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.