The Right Approach to Exceptions

Nick Sabalausky a at a.a
Mon Feb 20 15:46:23 PST 2012


"Andrei Alexandrescu" <SeeWebsiteForEmail at erdani.org> wrote in message 
news:jhucla$1tuf$7 at digitalmars.com...
> 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).




More information about the Digitalmars-d mailing list