reddit discussion on replacing Python in 0install

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Tue Jun 11 15:56:50 PDT 2013


On 6/11/13 3:25 PM, Steven Schveighoffer wrote:
> On Tue, 11 Jun 2013 14:38:51 -0400, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>
>> On 6/11/13 1:01 PM, Lars T. Kyllingstad wrote:
>>> As in a module destructor? Isn't it better to let the error pass
>>> silently rather than throwing an exception that can't be caught?
>>
>> It will not be caught but will cause the entire program to print a
>> diagnostic and exit with a nonzero error code, which is useful.
>
> How exactly is this useful? What if you returned a different error code
> and you prefer that to come through?

I think that can be very useful.

Andrei



More information about the Digitalmars-d mailing list