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.
[ Parent
| on HN ]
There are no comments on this comment yet.