Asked on Reddit: Which of Rust, D, Go, Nim, and Crystal is the strongest and why?

Tofu Ninja via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 11 14:01:52 PDT 2015


On Thursday, 11 June 2015 at 18:17:01 UTC, Dave wrote:
>> nothrow by default is combining the slowness of exceptions 
>> with the limitness of returned errors. Why would anyone want 
>> to do that?
>
> How would something that is guaranteeing that exceptions won't 
> be
> used, combining anything with the idea they are forbidding? You
> literally are getting a guarantee that any slow down is not due
> to exceptions. So this last statement is non-sense (I am sorry 
> to
> be blunt, but it is).

He is saying that now anything that throws will not only be slow 
but also have the same limitations as returned errors. Which at 
that point begs the question of why use exceptions at all? If you 
have to acknowledge it anyways, then might as well just use 
returned errors because they are faster.


More information about the Digitalmars-d mailing list