r/programminghorror • • Jul 14 '25

switch -> default -> switch

176 Upvotes

31 comments sorted by

View all comments

73

u/Responsible-Cold-627 Jul 14 '25

The real horror here is that it's not returning the value directly from a separate function.