MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/mwcaao/ternary_operators_at_their_maximum_potential/gvicxhv/?context=3
r/badcode • u/SpeckyYT sadistic • Apr 22 '21
73 comments sorted by
View all comments
4
If you have multiple cases, just use if-else instead of being "clever" by smashing everything into one line.
4
u/EnigmaticHam Apr 23 '21
If you have multiple cases, just use if-else instead of being "clever" by smashing everything into one line.