News for hackers. Stuff that matters.
Re:Elegant Error Handling with the JavaScript “Either” Monad by lacampbell on Wednesday June 19, 2019 @06:54PM (#20228159)
When combined with flow or typescript, Javascript absolutely supports sum types. Also, it's trivial to encode the Option and Either monad using Objects to get the same functionality.

There are no comments on this comment yet.