Why exceptions for error handling is so important

Dicebot via Digitalmars-d digitalmars-d at puremagic.com
Mon Jan 12 13:22:19 PST 2015


On Monday, 12 January 2015 at 21:11:44 UTC, Walter Bright wrote:
> There's another downside to returning two values - extra code 
> is generated, and it consumes another register. It allocates 
> very scarce resources to rare cases - not a recipe for high 
> performance.

In server applications there is no such thing as a rare case 
though and this trade-off looks quite appealing.


More information about the Digitalmars-d mailing list