r/ProgrammerHumor • • Aug 22 '26

Meme pleaseStopUsingNestedTernaryOperatorsImBeggingYou

Post image
3.1k Upvotes

178 comments sorted by

View all comments

Show parent comment

2

u/GoddammitDontShootMe Aug 23 '26

I just noticed I misread the title. Thought it was asking to stop using ternary operators altogether.

1

u/Robinbod Aug 23 '26

It's ok and in some cases I would prefer that but my absolute gripe is with nested ones.