DIP 1029---Add throw as Function Attribute---Community Review Round 1

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Thu Jan 16 16:42:01 UTC 2020

On Wednesday, 15 January 2020 at 17:34:46 UTC, Aliak wrote:
> Speed is not the reason to have nothrow as default. It’s so 
> that you are forced to be aware of functions that throw and 
> then you either handle it or not. With the current status quo 
> you get surprise exceptions which is less than ideal. Making 
> nothrow as default does not remove your ability to use 
> exceptions as error handling, it makes it more reliable.

For info, it seems you are looking for something similar to java 
checked exceptions: 

Best regards,

More information about the Digitalmars-d mailing list