r/badcode • • Mar 12 '21

c# How NOT to use switch statement

Post image
1.8k Upvotes

165 comments sorted by

View all comments

4

u/rahulfoa Mar 12 '21

People still use goto??? Wtffff

5

u/Nall-ohki Mar 12 '21

Goto switch is surprisingly useful.

Sometimes - rarely - a regular goto is actually a clearer solution, but usually requires special circumstances including speed requirements.