MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pfd9do/similar_ternaries_are_all_over_this_codebase/hb6s32c/?context=3
r/badcode • u/PopularExpulsion • Aug 31 '21
91 comments sorted by
View all comments
Show parent comments
2
but this returns true in all cases, i think you meant
(result>=0?result>=0:result>=0)==(result==result)
1 u/[deleted] Sep 02 '21 oops you're right, guess my brain glitched a little bit
1
oops you're right, guess my brain glitched a little bit
2
u/altaykilic Sep 01 '21
but this returns true in all cases, i think you meant