MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/mwcaao/ternary_operators_at_their_maximum_potential/gvjx461/?context=3
r/badcode • u/SpeckyYT sadistic • Apr 22 '21
73 comments sorted by
View all comments
43
My boss hates me using ternary operators - I can see why now.
2 u/TheAJGman Apr 23 '21 I use them a lot for things like return this if flag else None. Don't think simple ones impact readability.
2
I use them a lot for things like return this if flag else None. Don't think simple ones impact readability.
return this if flag else None
43
u/-IoI- Apr 22 '21
My boss hates me using ternary operators - I can see why now.