I guess because:
-
return ...is a valid Julia expression, i.e. it can be combined with other expressions. This is very convenient e.g. in REPL. - Assignment happens after the
returnand thus is effectively unreachable.
I guess because:
return ... is a valid Julia expression, i.e. it can be combined with other expressions. This is very convenient e.g. in REPL.return and thus is effectively unreachable.