3 ms·
I think missing `return` works if the language is designed around everything being expressions, so the function is just written as a single expression. I agree
by jdmichal 4y ago
I think missing `return` works if the language is designed around everything being expressions, so the function is just written as a single expression. I agree that in procedural type paradigms I like having the `return` keyword over things like "return the result of the last expression".
- int_19h 4y agoThis case is a bit different - omitting the return simply returns the implicitly declared result variable, which makes perfect sense.