February 25, 2014 Re: Bool setter for std.json | ||||
---|---|---|---|---|
| ||||
Posted in reply to Stephan | On Tuesday, 25 February 2014 at 08:07:28 UTC, Stephan wrote:
> Actually that is exactly what I like about it! Performance of exceptions in D is very bad and right now I am trying to reduce using them wherever I can.
The alternative is the "everything went better than expected" approach. I'd prefer to let programs break and performance suffer when something is wrong with them.
|
February 25, 2014 Re: Bool setter for std.json | ||||
---|---|---|---|---|
| ||||
Posted in reply to w0rp | On Tuesday, 25 February 2014 at 08:47:50 UTC, w0rp wrote:
> On Tuesday, 25 February 2014 at 08:07:28 UTC, Stephan wrote:
>> Actually that is exactly what I like about it! Performance of exceptions in D is very bad and right now I am trying to reduce using them wherever I can.
>
> The alternative is the "everything went better than expected" approach. I'd prefer to let programs break and performance suffer when something is wrong with them.
I agree with this and have hacked onto vibed json to throw exceptions unless a custom a custom version(JsnoNoThrow) is provided.
Cheers,
ed
|
Copyright © 1999-2021 by the D Language Foundation