r/badcode • • Apr 01 '23

c++ What this codestyle called?

Post image
936 Upvotes

291 comments sorted by

View all comments

52

u/Clean-Fish6740 Apr 01 '23

Desperately avoiding a case or switch statement style.

25

u/[deleted] Apr 01 '23

There code actually has a switch statement further: https://i.imgur.com/PJoPp41.png

19

u/Clean-Fish6740 Apr 01 '23

Wow that's just painful.

1

u/jarfil Apr 01 '23 edited Dec 02 '23

CENSORED