Hacker News new | ask | show | jobs
by topicseed 1652 days ago
What would you like for error handling?
3 comments

See Swift for a much more reasonable way to do error handling https://docs.swift.org/swift-book/LanguageGuide/ErrorHandlin...
Personally I think the documentation should enumerate all the error types returned by functions.
Either[E error,A any]