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

Aliak something at something.com
Wed Jan 15 17:34:46 UTC 2020


On Wednesday, 15 January 2020 at 17:16:18 UTC, Guillaume Piolat 
wrote:
> On Tuesday, 14 January 2020 at 23:04:02 UTC, Adam D. Ruppe 
> wrote:
>>[...]
>
> +1 it's a strange misguided idea in the absence of something 
> better than exceptions.
>
> [...]

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.


More information about the Digitalmars-d mailing list