Discussion on answer by Rhubarb: The case against checked exceptions

Discussion on answer by Rhubarb: The

Imported from a comment discussion on https://stackoverflow.com/questions/613954/the-case-against-checked-exceptions/614494#614494
1139d ago – gzak
24
4

export all events for this room

Starred posts

Nov 2, 2021 19:53
The main problem with this answer is that it totally misrepresents Hejlsberg's actual argument against checked exceptions - the fact that it encourages bad practices is only one of the arguments, and not the most compelling if you ask me. A more accurate tl;dr would actually be the interface pollution aspect, especially in the face of future changes that might introduce new kinds of checked exceptions - then you're really in a bind, because that's a breaking change to all your callers. it is this fundamental problem that begets the bad practices