nothrow by default
Paul Backus
snarwin at gmail.com
Mon Jan 6 06:58:34 UTC 2020
On Monday, 6 January 2020 at 03:13:09 UTC, Guillaume Piolat wrote:
> On Saturday, 4 January 2020 at 16:05:10 UTC, Steven
> Schveighoffer wrote:
>> Just wanted to bring this up, and not muddy the other thread.
>>
>> What do you put if you throw? @safe by default has
>> alternatives. nothrow does not. Are we going to get a new
>> keyword/uda?
>>
>> -Steve
>
> WHY would nothrow by the default in the first place?
>
> Exceptions are about the best error handling mechanism and
> there is no better altnernative in D.
`nothrow` by default doesn't stop you from using exceptions, it
just forces you to either catch them or mark your function as
throwing.
More information about the Digitalmars-d
mailing list