4 ms·
> It's still fundamentally caused by Go's shitty design choices. I mean, come on. In your playground example, one way of using the UUID type inherits its meth
by gwd 7y ago
> It's still fundamentally caused by Go's shitty design choices.
I mean, come on. In your playground example, one way of using the UUID type inherits its methods and another doesn't. Inheritance is inherently complicated, and if you're relying on it you need to know what you're doing, no matter what language you're using. I wouldn't call that a poor design choice.
- whateveracct 7y agonewtype NotRobPike'sUUID = NotRobPike'sUUID UUID deriving newtype (ToJSON, FromJSON) ^ not inherently complicated
- throwaway894345 7y agoI'm not sure you're making the point you think you are.
- whateveracct 7y agoMy point is if you Do Better than cargo cult stuff that feels nice, you can solve the original problem nicely.
- deleted 7y ago[deleted]