file i/o in a variety of languages

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Aug 27 13:14:02 PDT 2010


On 8/27/10 11:29 PDT, Walter Bright wrote:
> Walter Bright wrote:
>> Trass3r wrote:
>>>> D doesn't look half bad:
>>>
>>> Yeah that comment about Go says it all:
>>>
>>>> It's rather amazing that given 30 years of evolution and language
>>>> design, they've still managed to invent a new language that's as
>>>> hard to write error-checking code in as C. Even Java's less verbose!
>>>> – DK
>
> And here's the C version. Note the heroic attempt to check for errors,
> and yet how most errors are not checked for:

Good point. To paraphrase a well-known quote, it does look like 
exceptions are the worst way to go about error handling, except all others.

Andrei


More information about the Digitalmars-d mailing list