The Right Approach to Exceptions

Andrei Alexandrescu SeeWebsiteForEmail at
Mon Feb 20 16:19:32 PST 2012

On 2/20/12 5:46 PM, Nick Sabalausky wrote:
> "Andrei Alexandrescu"<SeeWebsiteForEmail at>  wrote in message
> news:jhucla$1tuf$7 at
>> On 2/20/12 2:45 PM, Jacob Carlborg wrote:
>>> On 2012-02-20 19:47, Andrei Alexandrescu wrote:
>>>> On 2/20/12 12:50 PM, deadalnix wrote:
>>>>> This is bad design IMO. Exception are here to provide information about
>>>>> what is wrong. It has nothing to do with internationalisation
>>>>> whatsoever.
>>>> 100% agree.
>>>> Andrei
>>> It sure seems you want to but internationalization into exceptions.
>> How did you infer that? I don't want to put internationalization into
>> exceptions /at all/.
> You've suggested adding "Variant[string] info" to Exception for the sake of
> i18n. I think that's what he's referring to. You *could* argue that's not
> technically i18n, but so far i18n seems to be the only real use-case for it
> (although even that much has been disputed in light of reflection).

All formatting and rendering of the exception information is helped. And 
I think that's great because that's the most common activity one would 
do with exceptions.


More information about the Digitalmars-d mailing list