Fortran allows more verbose 'end' statements. For instance, given
real function foo(x)
...
you can finish the function body with 'end' or 'end function' or 'end
function foo'. Permitting this in Julia would not
break any existing code. I guess you can achieve a similar effect with
comments,
end # function foo
but actually parsing the longer form end statement might help detect some
bugs. Fortran also allows optional
statement labels on do-loops to handle situations where you want to exit
from an outer iteration, e.g.,
outer: do i = 1, 1000
inner: do j = 1, 1000
...
if ( a(i,j) < 0.0 ) exit outer
end do inner
end do outer
Without the label, 'exit' causes the program to exit from the innermost
enclosing loop. I don't know if there is any
simple way to achieve this effect in Julia.