r/ProgrammerHumor • • Jan 16 '14

[deleted by user]

[removed]

1.3k Upvotes

446 comments sorted by

View all comments

Show parent comment

1

u/kqr Jan 17 '14

Finally, the docs explicitly state the x or y syntax as "if x is false, then y, else x" which fits in line with only returning y if x is equivalent to false (such as an empty string).

Oh. It's fair game now.

(And I should start reading the docs more often.)