lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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