Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Two commutes with Rust. Parent comment
is equivalent to:
a = b > 1 ? 1 : 2
in other languages. Meaning that the if/else statement can be used as an expression that can provide an rvalue of integer type.
There are no comments on this comment yet.
is equivalent to:
a = b > 1 ? 1 : 2
in other languages. Meaning that the if/else statement can be used as an expression that can provide an rvalue of integer type.