Hacker News new | ask | show | jobs
by FreeFull 3399 days ago
I would strictly call that an "if expression" rather than an "if statement". It is equivalent to ?:, even though it is also a bit more verbose.