Re:Lies we tell ourselves to keep using Golang
by masklinn on Tuesday November 26, 2024 @05:41AM
(#42244480)
No, MRVs can actually offer useful properties and features, that is what they do in Common Lisp. That Go does not do that has nothing to do with MRVs.
Re:Lies we tell ourselves to keep using Golang
by erik_seaberg on Tuesday November 26, 2024 @10:38PM
(#42252667)
f(g(), h()) can't work with MRVs, only f(g()). multiple-value-list, multiple-value-call, and quietly ignoring unneeded values makes them much more usable.
> MRVs mostly end up being worse tuples
I think you noticed yourself that you’re getting too hung up on terminology. Multiple return values are a half-hearted, non-reified version of tuples.