I've been spending the last couple of week learning #rust
The biggest ick I've seen so far is the implicit return values.
Example:
```rust
fn return_one(): i32 {
1
}
```
It feels like someone forgot to remove some random value in their function.

I really like explicitness and will use `return 1` in my codebase

#rustlang

Follow

@husjon Welp `return` returns from the function, but you will want to give expressions a value at times and `return` won't work in that case.

Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.