[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Bugs in Hello World
- From: "Pierre Chapuis" <lua@...>
- Date: Wed, 09 Mar 2022 17:27:17 +0100
I came across this post, which discusses the lack of error validation in naive "Hello World" programs in different languages: https://blog.sunfishcode.online/bugs-in-hello-world/
Lua isn't mentioned but it would fail this author's test. I do not personally think it is an issue with the language, but to make it work in Lua one would have to write Hello World like this:
io.stdout:write("Hello World!\n")
assert(io.stdout:flush())
--
Pierre Chapuis