4 ms·
How exactly does functional programming help here?
by dkarapetyan 11y ago
How exactly does functional programming help here?
- anonymousDan 11y agoI guess he's referring to things like the maybe monad.
- acconsta 11y agoSum types allow a function to return either a result or an error. Not accounting for both possibilities is a compile time type error. Go mimics this behavior, so it's not only a functional thing: http://blog.golang.org/error-handling-and-go http://blog.golang.org/error-handling-and-go