2 ms·
> You're not changing the underlying value of `color.Red` Doesn't matter, the point is they're getting in a value which is not part of the defined set, demonst
by masklinn 3y ago
> You're not changing the underlying value of `color.Red`
Doesn't matter, the point is they're getting in a value which is not part of the defined set, demonstrating that this emulation is not actually typed-safe.
> If that's the point you're intending to make, then couldn't you make it more easily with this?:
cannot convert "orange" (untyped string constant) to type Color
- throwaway894345 3y agoYeah, I thought Color was `type Color string`. I misunderstood what he was doing.