Hacker News new | ask | show | jobs
by golangnews 2878 days ago
This (optional types) is one thing I'd really like them to explore for go 2.
2 comments

Yes, a fix to the mess error handling in Go is is long overdue, and I find Rust and Haskell approach one of the most effective ones, clear to understand and not too verbose, and yet powerful and relatively free of the mess exceptions are in other languages. I sincerely hope the Go authors will give sum types a shot in future releases of the languages, because they are so comically powerful that implementing them just feels like the right thing to do.
The generalization (sum types) would be even more powerful. Fingers crossed.