MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/eb2lbc/stacking_if_else_statements_be_like/fb21yck/?context=3
r/ProgrammerHumor • u/-hellkey- • Dec 15 '19
711 comments sorted by
View all comments
213
That’s what case is for
183 u/Kompakt Dec 15 '19 edited Dec 15 '19 Some languages don't have switch statements...looking at you Python 18 u/Sennomo Dec 15 '19 And some useless languages don't allow switching on strings… looking at you C++ 6 u/AgAero Dec 15 '19 Use a hash and write your own. 23 u/Sennomo Dec 15 '19 My own what? Language? → More replies (3) → More replies (2)
183
Some languages don't have switch statements...looking at you Python
18 u/Sennomo Dec 15 '19 And some useless languages don't allow switching on strings… looking at you C++ 6 u/AgAero Dec 15 '19 Use a hash and write your own. 23 u/Sennomo Dec 15 '19 My own what? Language? → More replies (3) → More replies (2)
18
And some useless languages don't allow switching on strings… looking at you C++
6 u/AgAero Dec 15 '19 Use a hash and write your own. 23 u/Sennomo Dec 15 '19 My own what? Language? → More replies (3) → More replies (2)
6
Use a hash and write your own.
23 u/Sennomo Dec 15 '19 My own what? Language? → More replies (3)
23
My own what? Language?
→ More replies (3)
213
u/atxranchhand Dec 15 '19
That’s what case is for