Re:Leveraging the Go Type System
by corylanou1 on Tuesday February 09, 2021 @01:36PM
(#26080998)
It might be a little premature to judge an entire language on an introduction article for beginners. This article isn't intended to show every possible way Go can solve a problem, but intended to show people new to Go different ways to think about types. In a production scenario, it's unlikely I would use this solution. This is really an "academic" exercise in types for Go, not a practical application.
[ Parent
| on HN ]
My reply was at least partially facetious as this wasn't my first exposure to Go. If you like the simplicity of Go's type system I can't argue with that, but I do think your article demonstrates the way that simplicity at the language level pushes complexity into the users code. Pick any modern statically typed language and this whole post will boil down to something like:
data Genre = Adventure
| Comic
| Crime
| ...
deriving (Show)