by stormbrew · 11y ago · 0 comments
If it's not the norm, I'd rather have an explicit "nil" or something at the end.
Also, because function signatures are never infered in Rust, mistakenly adding or forgetting the last semicolon will always result in a type error.
The most common pattern in my Rust code is:
`statement; statement; expression` where the expression is what I actually want to return from this function
it seems more noisy to say `statement; statement; return expression;`