You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The example program from #21168 (https://play.golang.org/p/XPEU7FoTes) can only exit early if it panics, and ends with an unconditional call to fmt.Println with an int64 argument.
Oddly, with the current Playground version of the Go compiler, it appears to print a blank line instead of the final number:
The gray (rather than red) text at the bottom and lack of a panic dump suggest that the program did, in fact, run to completion, but where is the output?
The text was updated successfully, but these errors were encountered:
fmt.Println(n+1) works the same way. With fmt.Println(1), fmt.Println(n*1) or fmt.Println(n,n) I get either "process took too long" or "Error communicating with remote server." It's funny.
I too see this as being reported as “process took too long”. When reducing the constant maxInt so that it returns in under 2 seconds, the output it printed as expected.
The example program from #21168 (https://play.golang.org/p/XPEU7FoTes) can only exit early if it panics, and ends with an unconditional call to
fmt.Println
with anint64
argument.Oddly, with the current Playground version of the Go compiler, it appears to print a blank line instead of the final number:
The gray (rather than red) text at the bottom and lack of a panic dump suggest that the program did, in fact, run to completion, but where is the output?
The text was updated successfully, but these errors were encountered: