News for hackers. Stuff that matters.
Re:The Value in Go’s Simplicity by atombender on Saturday November 16, 2019 @07:14PM (#21555765)
That's not an enum or sum type, though, and misses the point of my example. For colors, sure, you can use a structural type to represent RGBA, but that wasn't what I was trying to get across. What if the set of possible values cannot be described as scalars? The other example with "actions" demonstrated this problem.

There are no comments on this comment yet.