I used goto a while back in a C# codebase and went through a days long PR fight with someone who got cargo culted against it in school. Like, we have 3 different paths here that share cleanup code. Really trying to tell me that throwing an exception is more efficient than *one* jump instruction? 😂
iirc, a lot of that comes from goto in C letting you do things like jump from the middle of one function into the middle of another function and acting like it's a single continuous function. Incomprehensibly insane undefined behavior, so ppl viscerally mistrust goto.
Memory safe languages are woke. Real American programming languages have first-class syntactical support for overwriting branch targets. What could go wrong?
Comments