Re:Quick and Clean in Go
by 0xABADC0DA on Wednesday August 01, 2012 @05:39PM
(#4325900)
Something like this:
# /bin/echo "Hello World" >&-
/bin/echo: write error: Bad file descriptor
You get this kind of thing for free with exceptions.
If printf or equivalent in a hello world program can't print to stdout, what should it do instead of crashing? Send an email?
I don't think I've ever seen a hello world for a language with exceptions (checked or not) that actually handled an exception from printf either.