Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Try Three Times. Parent comment
They provide debugging information to you, as well as the ability to report to the user what went wrong rather than just that something went wrong.
> I think in practice people do use exceptions for things they both expect to happen, and know how to handle at that point.
This is true, and also causes terrible performance. Especially for situations like this where retries are likely to happen quite frequently.
There are no comments on this comment yet.
They provide debugging information to you, as well as the ability to report to the user what went wrong rather than just that something went wrong.
> I think in practice people do use exceptions for things they both expect to happen, and know how to handle at that point.
This is true, and also causes terrible performance. Especially for situations like this where retries are likely to happen quite frequently.