Should I specify return type or not?


According to docs — "If a function has a block body (in curly braces, not after '=') and returns Unit, one can omit the return type annotation:"  What is recommended way? I don't see note about it in


When you want to return Unit, the recommended way is to omit the type annotation.