Alternatives to exceptions for error handling

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Nov 24 23:17:57 UTC 2020


On Tue, Nov 24, 2020 at 10:41:16PM +0000, Adam D. Ruppe via Digitalmars-d wrote:
> On Tuesday, 24 November 2020 at 22:14:03 UTC, H. S. Teoh wrote:
> > I've said before, and I'll say again: I suspect that most (all?) of
> > the current objections against exceptions comes from the current
> > *implementation* of it, i.e., libunwind, et al..
> 
> D used to use a different implementation that I frankly thought was
> superior.
>
> But it moved to this one for compatibility with other languages....
[...]

Yeah.  And this is why aping other languages is not always a good idea.
There must be adequate justification in-language for it; "language X
does Y and therefore we must also do Y" is fallacious and leads nowhere
good.


T

-- 
They say that "guns don't kill people, people kill people." Well I think the gun helps. If you just stood there and yelled BANG, I don't think you'd kill too many people. -- Eddie Izzard, Dressed to Kill


More information about the Digitalmars-d mailing list