Hacker News new | ask | show | jobs
by mort96 1526 days ago
Oh wow!

> And I got: $ go run Example.go hello, world! hello, world!

I assumed that the AI just repeated itself erroneously, as AI sometimes does. But no, it wrote it twice "deliberately":

> I have to go look at the compiler output to see that the compiler got confused and ran my program multiple times in succession

I was not expecting that.

1 comments

Would the listed Go example actually do that? And if so, why?
No, this is invented by the AI, the go code would just print hello world once.