Exception chaining and collectException

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 18 15:55:37 PDT 2017


On 8/18/2017 2:09 AM, Don Clugston wrote:
> I invested quite a lot personally in implementing chained exceptions. But I 
> agree with you.
> I was actually quite proud that I worked out the nasty corner cases during the 
> initial implementation. As far as I can tell, problems with chained exceptions 
> are not because of bugs and implementation issues, but because of problems with 
> the concept itself.
> 
> I think it's just a bit too clever.

Thanks for the explanation. When I decided to support Dwarf exceptions, I spent 
a lot of time trying to match that behavior.

We've all invested lots of time in things that didn't pay off. We mustn't get 
trapped by the sunk cost fallacy:

https://en.wikipedia.org/wiki/Sunk_cost

and I'm glad you're ok with that!



More information about the Digitalmars-d mailing list