Re:How can C Programs be so Reliable?
by DarkShikari on Tuesday November 11, 2008 @09:47PM
(#361307)
Sure you can ignore it. You don't want to know the number of times I've seen people using the "try, catch, toss away the exception" structure in Java code.
[ Parent
| on HN ]
But you have to actively decide to ignore it.
Whereas when you're dealing with return codes, the default is to ignore.
Re:How can C Programs be so Reliable?
by silentbicycle on Wednesday November 12, 2008 @06:02PM
(#362443)
In OCaml, you're required to do something with the return from any non-void function. You can just say "ignore (f x)" to discard the result, so it's not hugely inconvenient, but causes suspect code to accumulate warning signs.
It seems like a good compromise.