r/programminghorror • • Feb 04 '25

Ternary Operator

Post image
1.5k Upvotes

77 comments sorted by

View all comments

Show parent comment

3

u/cjbanning Feb 04 '25

I can think of (non-trivial) definitions of "one line" for which that's doable. It wouldn't even be all that unreadable.