3 ms·
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
by corylanou1 6y ago
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.
- cbdumas 6y agoMy 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)