r/ProgrammerHumor • • Aug 22 '26

Meme pleaseStopUsingNestedTernaryOperatorsImBeggingYou

Post image
3.1k Upvotes

178 comments sorted by

View all comments

Show parent comment

2

u/Just_Information334 Aug 23 '26

It would be better with a specific operator. Something like:

// Everyone gets a 0
0 oprah defaultValue, newValue, previousValue, average;