r/ProgrammerAnimemes • • May 20 '23

Ternary operator

Post image
1.5k Upvotes

41 comments sorted by

View all comments

Show parent comment

0

u/[deleted] May 21 '23

[deleted] — view deleted comment

15

u/OddKSM May 21 '23

Best ESLint rule i ever implemented for our codebase

4

u/sapirus-whorfia May 21 '23

If your language has something like a switch statement, I don't see why nested ternaries would be needed.

2

u/DuhMal May 21 '23

Why do I see way too many programmers with Shana pfp?

1

u/nukasev May 21 '23

Also a crime against humanity.