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

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Mon Oct 6 11:10:48 PDT 2014


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.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list