|
|
|
|
|
by tedmielczarek
3400 days ago
|
|
I have found using conditionals as expressions super useful, like: ```
fn foo(number: u32) -> bool {
if number > 2 { true } else { false }
}
``` I mean obviously in this situation you could just have the body of the function be `number > 2` but I write a lot of Rust code that does similar things now. |
|