exceptions vs error codes

Ola Fosheim Grøstad via Digitalmars-d digitalmars-d at puremagic.com
Sun Jul 10 10:03:22 PDT 2016


On Sunday, 10 July 2016 at 03:02:31 UTC, Superstar64 wrote:
> In terms of performance and code generation exceptions are 
> faster in the regular path while error codes are faster in the 
> error path.
>
> Would it be possible and a good idea to have a language feature 
> that allows some exceptions to use error code code generation.

Yes, this has been discussed quite heavily in the past. It is 
both possible and a good idea, but it won't happen. This is quite 
typical for possible and good ideas around here... :-)



More information about the Digitalmars-d mailing list