Hacker News new | ask | show | jobs
by RadiozRadioz 427 days ago
The caveat that this focuses on the JS ecosystem is important. JS error handling is notoriously terrible. Lots of the complaints here would be solved by native support for typed & checked exceptions, the latter of which was not mentioned in the article. Support for those two would be a big improvement, and we could still use the Optional/Result "errors as values" pattern in places where that is the more elegant approach.