3 ms·
> unqualified statements that "sum types make everything simpler" are just wrong, because they don't. Just about everything is "simpler" than Go's `iota` (whic
by ReleaseCandidat 3y ago
> unqualified statements that "sum types make everything simpler" are just wrong, because they don't.
Just about everything is "simpler" than Go's `iota` (which isn't even easier for the compiler implementor).
- arp242 3y agoI never said there aren't features in Go I would rather see removed, or that there aren't features I would like to see added, or that Go is perfect in general.
- ReleaseCandidat 3y agoSúm types (or even just working enums) would replace iota.
- arp242 3y agoOnly for some uses of iota. And iota is "simpler" from some perspectives, because you never have to deal with it anywhere except in const (..) blocks (that is, it's a very "localized" feature that barely interacts with anything else).