On Sun, 11 Jan 2015 13:06:26 +0000
Dicebot via Digitalmars-d <digitalmars-d@puremagic.com> wrote:

> What is your opinion of approach advertised by various functional 
> languages and now also Rust? Where you return error code packed 
> with actual data and can't access data without visiting error 
> code too, compiler simply won't allow it.
from my POV it trashes logic with error checking. hey, i don't care if
*each* `fwrite()` is successfull, i only care if all of them are ok or
at least one (any one) failed!

by the way: how many peope put checks for `close()`/`fclose()` return
value? it returns no actual data, so why bother...

i believe that exceptions are better for error checking: it's hard to
ignore errors, error handling logic is clearly separated and so on.

Attachment: signature.asc
Description: PGP signature

Reply via email to