News for hackers. Stuff that matters.
Re:I Want Off Mr. Golang's Wild Ride by gwd on Friday February 28, 2020 @05:02PM (#22446835)
> 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.

Re:I Want Off Mr. Golang's Wild Ride by whateveracct on Friday February 28, 2020 @05:14PM (#22446910)

    newtype NotRobPike'sUUID = NotRobPike'sUUID UUID deriving newtype (ToJSON, FromJSON)
^ not inherently complicated
Re:I Want Off Mr. Golang's Wild Ride by throwaway894345 on Friday February 28, 2020 @05:35PM (#22447050)
I'm not sure you're making the point you think you are.
Re:I Want Off Mr. Golang's Wild Ride by whateveracct on Friday February 28, 2020 @05:41PM (#22447085)
My point is if you Do Better than cargo cult stuff that feels nice, you can solve the original problem nicely.