Check return statement presence #122
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Allowing only one return statement at the end of a procedure has a nice property that it is easy to check that the procedure returns. The return statement in procedures without a return type (or
noreturn
) is checked and an error is reported, but another way around is ignored: a procedure that declares a return type, but doesn't return, compiles without an error.