Trying to evaluate the following (meaningless, but I have tried to make it minimal) function
function checkIt() state =  while(true) break end return state end
One gets an “complete: “function” at … test.jl” error.
The problem is the “while(true)”, it needs to be written as “while (true)”, or better I suppose “while true”.
[Space after the while]
However I believe “while(true)” is still valid syntax, it is certainly accepted by the repl.