The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
From: Scott Pakin <scott+...@pakin.org>
Date: Tue, 9 Nov 2010 17:33:12 -0800 (PST)
Local: Tues, Nov 9 2010 8:33 pm
Subject: Re: Function accepting a slice of interface types.
On Nov 9, 4:13 pm, SnakE <snake.sc...@gmail.com> wrote:
> When you pass a string to a function expecting `interface{}` the runtime
But why can't Go simply box the entire array as a whole (at a cost of
> constructs that two-field structure and passes it instead. Asymptotic cost > of this operation is amortized O(1). > An array of strings is internally a C array of pointers. An array of
O(1))? Per-access costs would be comparable to those incurred by accessing a string passed to a function expecting an interface{}. right? I like the idea of being able to pass a []string (or whatever) to an
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||