Program logic bugs vs input/environmental errors (checked exceptions)

Andrei Alexandrescu via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 6 11:26:26 PDT 2014


Jacob Carlborg <doob at me.com> wrote:
> On 2014-10-06 17:07, Andrei Alexandrescu wrote:
> 
>> I don't. On the contrary, I do consider proliferating types to the
>> multiplicity of possible errors an obvious design sin. -- Andrei
> 
> You loose the ability to have exception specific data. And no, I don't
> want to see an associative array of Variants, that's even worse hack then
> error codes. You'll run in to problems with unique keys and will most
> likely need to "scope" all keys.

Then scope them.


More information about the Digitalmars-d mailing list