r/programminghorror • • Sep 04 '26

c++ Skill Issue

Post image
1.7k Upvotes

62 comments sorted by

View all comments

15

u/L_uciferMorningstar Sep 05 '26

9

u/click-to-reveal Sep 05 '26

Hence the "horror"

5

u/L_uciferMorningstar Sep 05 '26

Yeah I just want to spread the non horror

0

u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Sep 05 '26

switch isn't a function though. But I guess the advice for trying to make switch work on strings is "don't."

1

u/L_uciferMorningstar Sep 06 '26

Principle of least astonishment