Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Elegant Error Handling with the JavaScript “Either” Monad. Parent comment
I think you have some fundamental misconceptions about sum types. Note that enums also don't even need to have any variants.
enum Never {}
Either way, this discussion is no longer fruitful. I encourage you to read about sum & product types.
There are no comments on this comment yet.
I think you have some fundamental misconceptions about sum types. Note that enums also don't even need to have any variants.
enum Never {}
Either way, this discussion is no longer fruitful. I encourage you to read about sum & product types.