Comment by forresthopkinsa
2 days ago
> But there has to be something in the payload field when it is not applicable
Not in languages with ergonomic sum types. A `Result` or `Either` will have no payload field on the error type. The compiler won't let you dereference it.
No comments yet
Contribute on Hacker News ↗