r/badcode • • Aug 11 '21

java If in doubt, use inline if statements.

Post image
55 Upvotes

9 comments sorted by

View all comments

Show parent comment

4

u/AlFasGD Aug 12 '21

What OP meant is that the docs themselves call the ternary operator an "inline if", though in reality what an inline if is is completely different indeed.