MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/mwcaao/ternary_operators_at_their_maximum_potential/gvi2qeu/?context=3
r/badcode • u/SpeckyYT sadistic • Apr 22 '21
73 comments sorted by
View all comments
7
I thought the rule for ternary was have only two things compared not even sure what this would return
8 u/HattyJetty Apr 22 '21 That's why ternary operators are right-associative in most languages. Unlike... ahem... php
8
That's why ternary operators are right-associative in most languages. Unlike... ahem... php
7
u/INTO_NIGHT Apr 22 '21
I thought the rule for ternary was have only two things compared not even sure what this would return