Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sum 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



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: