nothrow by default

rikki cattermole rikki at
Sat Jan 4 16:07:23 UTC 2020

On 05/01/2020 5:05 AM, 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

Well we could use throw, or add throws like in Java.

But after Java I do think we have the right defaults for exceptions in 
general. The Java way forces you to use the IDE to handle that stuff, 
instead of yourself. Which would be a major loss for D.

More information about the Digitalmars-d mailing list