The Right Approach to Exceptions

Andrei Alexandrescu SeeWebsiteForEmail at
Mon Feb 20 18:37:56 PST 2012

On 2/20/12 7:22 PM, H. S. Teoh wrote:
> Please bear in mind, I'm not saying that Variant[string] is *completely*
> useless. I'm just saying that most of the time it's not necessary. Sure
> there are some cases where it's useful, I've no problem with it being
> used in those cases. But we shouldn't be using it for all kinds of stuff
> that can be handled in better ways, e.g., static fields in a derived
> exception class.

On the contrary, I predict that once Variant[string] info() is present 
in Exception, people will start using it with a collective sigh of relief.


More information about the Digitalmars-d mailing list