FAQ

On Thu, Nov 1, 2012 at 9:41 AM, minux wrote:

Comparing:
columns, c, r = destructure(exact.stack[k])
and:
sp := &exact.stack[k]
columns, c, r = sp.columns, sp.c, sp.r

I think the latter form is quite acceptable (no error when struct fields
are reordered, thus adhere to the explicitness principle of Go)
True, those are the advantages. Disadvantage is being "slower than
optimal by design."

--
Michael T. Jones | Chief Technology Advocate | mtj@google.com | +1
650-335-5765

--

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 16 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