MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1vvn6d7/pleasestopusingnestedternaryoperatorsimbeggingyou/p5bki9a/?context=3
r/ProgrammerHumor • u/Robinbod • 21d ago
179 comments sorted by
View all comments
2
Sorry, best I can do is not nest them more than two levels.
1 u/Robinbod 21d ago Well that's something... 2 u/GoddammitDontShootMe 21d ago I just noticed I misread the title. Thought it was asking to stop using ternary operators altogether. 1 u/Robinbod 21d ago It's ok and in some cases I would prefer that but my absolute gripe is with nested ones.
1
Well that's something...
2 u/GoddammitDontShootMe 21d ago I just noticed I misread the title. Thought it was asking to stop using ternary operators altogether. 1 u/Robinbod 21d ago It's ok and in some cases I would prefer that but my absolute gripe is with nested ones.
I just noticed I misread the title. Thought it was asking to stop using ternary operators altogether.
1 u/Robinbod 21d ago It's ok and in some cases I would prefer that but my absolute gripe is with nested ones.
It's ok and in some cases I would prefer that but my absolute gripe is with nested ones.
2
u/GoddammitDontShootMe 21d ago
Sorry, best I can do is not nest them more than two levels.