News for hackers. Stuff that matters.
Re:Ask HN: What is the “proper” way to do error-handling in ... by moystard on Tuesday January 24, 2023 @07:05PM (#34512462)
I usually use the unknown type and leverage type guards for isolating the exact type and processing it. If it falls down the type guards, process as generic error.

There are no comments on this comment yet.