lua-users home
lua-l archive

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


Dne 2022-03-10 14:21, Hisham napsal:
On Wed, 9 Mar 2022 at 13:28, Pierre Chapuis <lua@catwell.info> wrote:

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/

This is fun and all (and I did learn about /dev/full reading it!), but
I hope it doesn't become part of pedantry lore. Calling that behavior
a "bug" is really stretching it, after all, I think if you asked
anybody what's the specification of the well-known programming example
"hello world" is, they'd just say "it should print 'hello world'" and
not "it should print 'hello world' and returns an exit code indicating
whether the print operation was successful or not". :)

-- Hisham

So true! Thank you.

Unless you need to write automotive-grade hello world code of course :-)

--
Tomas