- function call
- if sentence
- any kind of loop
You've used a GOTO under the hood. I hope you can live with yourself, you monster :)
- function call
- if sentence
- any kind of loop
You've used a GOTO under the hood. I hope you can live with yourself, you monster :)
"Yeah to those still adamant about it, if you've ever used statically-typed code, you've used untyped assembly under the hood. I hope you can live with yourself, you monster :)"
That it's under the hood is the point of using constrained control-flow control. It's significantly easier to reason about `if` and `while` and `for` than about `goto`. That is basically the same reason functional programming have more HoFs than `fold`. You can do everything with `fold` and that's a problem because it creates way more cognitive overhead for the reader, they can't know what the code is trying to achieve until they get all the details, nor is the compiler able to check anything.
Likewise goto.
- state machines - early return of a function