3 ms·
Yeah, in practice I have this problem with Rust sometimes. If the returned value is a single line, it's easy to see what is being returned. If it's a 10-lines
by PoignardAzur 5y ago
Yeah, in practice I have this problem with Rust sometimes.
If the returned value is a single line, it's easy to see what is being returned. If it's a 10-lines if/else, and you don't remember the function's return type, and you're not sure how many layers of control flow you're at, etc, it gets a little ambiguous.
You can mitigate that with good coding practice, though. There could maybe even be turned into lints.