This issue came up when sending a function with a lot of blank lines in julia-repl. It can be reproduced like this:
julia> function f() ERROR: syntax: incomplete: premature end of input
f(). Is this a bug? Should Julia wait for the
end, or does it give up after a while? Is the threshold for the latter well-defined?