Learning rust, I found some aspects that sound me strange. For example, the return value of a function is the last line of the function without the semicolon. No "return" keyword is required...Looks a little bit confusing to me, am I wrong? #rust #programming
@cec7b4fa Returning the last expression is something that you want in closures (anonymous functions). This makes the syntax much more consistent. Returning will never happen by accident because the return type must be specified. The compiler will tell you if something is returned that you don't want to return.