re: Challenge: Write a program that never stops VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Haskell go = 1:go
 

Isn't this program fine? It never forces evaluation of go so the program immediately exits.

 

of course I assumed you would evaluate the expression (for example in the repl)

you are technical right but it's a bit like commenting to all the others and saying "it's fine as long as you don't run it" ;)


just assume a

main = print go

there if you like

code of conduct - report abuse