News for hackers. Stuff that matters.
Re:Go and Simplicity Debt Redux by hota_mazi on Monday June 19, 2017 @03:15AM (#14585101)
> A powerful motivation for adding generic types to Go is to enable programmers to adopt a monadic error handling pattern.

That has never been my impression. The main drive for generics is safer code, period. It doesn't necessarily translate to a different way of handling errors (Java and Kotlin mostly use exceptions despite supporting parametric polymorphism).

Rejecting generics because they would force a switch to monadic error handling is completely misunderstanding the value of generics, a sentiment that seems to be widespread in the Go community.

There are no comments on this comment yet.