News for hackers. Stuff that matters.
Re:What's coming in Go 1.12 [slides] by ilovecaching on Friday November 02, 2018 @07:25PM (#18367552)
If they’re trade offs, why is the Go team making proposals to add genetics and result types?

Trade offs are one thing, defecencies are another.

And if you can think of a reason why hard coding multivalue return signatures would be better than a tuple type, then I’d like to hear it.

Re:What's coming in Go 1.12 [slides] by skywhopper on Friday November 02, 2018 @07:43PM (#18367651)
You've not really indicated how a multi-value return signature is even _different_ than a tuple type.
Re:What's coming in Go 1.12 [slides] by ilovecaching on Friday November 02, 2018 @07:55PM (#18367701)
A tuple is a type constructor. A multi value return is not a type. It’s a semantic hard coded into the language spec. If you have tuples, you don’t have to add that special case to the language. You can also type alias a tuple, store it as a value, and just generally treat it like any other type.