FAQ

On Thu, Nov 1, 2012 at 6:50 PM, Peter wrote:

I agree with Kevin. I can't see how I would need this feature (I haven't
so far, anyway). How often do you return a variable number of arguments and
don't want a slice? Why wouldn't you want a slice?
tuples are useful because it can contain different types of objects (unlike
strict typing
arrays and slices).

and i think the main usage for tuples is to compensate the lack of multiple
return values.

Go does have support for multiple return values, so i think one large use
case of tuples
is gone.

--

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 13 of 22 | next ›
Discussion Overview
groupgolang-nuts @
categoriesgo
postedOct 31, '12 at 9:15a
activeNov 2, '12 at 7:51a
posts22
users11
websitegolang.org

People

Translate

site design / logo © 2021 Grokbase