The Right Approach to Exceptions
dl.soluz at gmx.net
Sun Feb 19 08:54:08 PST 2012
Am 19.02.2012 17:27, schrieb Andrei Alexandrescu:
> On 2/19/12 2:21 AM, H. S. Teoh wrote:
>> Getopt isn't really the best use case for elaborate exception
>> hierarchies. Perhaps we should use file I/O or network/socket I/O
> This is exactly what we should avoid: regressing to well-trodden ground.
> We shouldn't discuss OOP only in terms of Animal and Mammal, and we
> shouldn't discuss exceptions only in terms of IOException and
> NetworkException. We should look at the "uncomfortable" cases.
so there is a need to start with collecting the uncomfortable cases -
that would ease the complete discussion a lot
More information about the Digitalmars-d