Re:A rough proposal for sum types in Go (2018)
by lmm on Tuesday November 16, 2021 @07:58PM
(#29248259)
I'm coming at it solely on the basis of practical experience. Removing a single boilerplate check might seem insignificant, but it compounds: when these types are lightweight to work with you can extract more tiny helper functions, and then you have a whole vocabulary of common operations / ways of doing composition, and you can write these really readable functions that just get all the plumbing out the way (but without making it completely invisible) and let you focus on the business logic.
[ Parent
| on HN ]
There are no comments on this comment yet.