Hacker News new | past | comments | ask | show | jobs | submit login

> MRV, go does not have tuples.

> 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.




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.


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.


Which is what they said. I'm not sure what point you're making




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: