when should a function in Julia have a return statement using the return keyword and when should it just return by having the variable I want to return at the end of the function?
I was reading the Julia docs and it seems like there's quite a bit of literature on the subject found here.
My understanding is that the convention is to always use return
if you are trying to break out of the function and to otherwise just have the variable you want to return at the end of the function.
Is my understanding correct or am I missing something here?