Why goto Still Exists in C#?
Why goto Still Exists in C#?
Because it's good to use goto in some situations? It's perfectly fine to use goto when using the procedural programming paradigm. It's common to goto an 'error' label (from any number of spots within the procedure) to do cleanups before returning. This technique is used in C programs (see Linux Kernel code example here: https://github.com/torvalds/linux/blob/master/fs/ext4/block_...)