Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I mean, it depends, CGAL for example, which I'd consider a high quality software library, uses exceptions for their exact number type to redo the calculation using more precision when needed https://www.cgal.org/FAQ.html#uncertain_exception


You're invoking the appeal to authority fallacy. Just because a popular package adopted a practice that does not make it right or good or acceptable. If that line of argument made any sense, you could argue that bugs present in CGAL represent best practices.

Rule of thumb: if a code path is not exceptional then it should not be implemented with exceptions. The happy path is not an exception.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: