Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(149)

Issue 3529042: code review 3529042: reflect: add Append and AppendSlice functions. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 6 months ago by nigeltao
Modified:
14 years, 6 months ago
Reviewers:
CC:
r, nigeltao_gnome, rog, niemeyer, golang-dev
Visibility:
Public.

Description

reflect: add Append and AppendSlice functions.

Patch Set 1 #

Patch Set 2 : code review 3529042: reflect: add Append and AppendSlice functions. #

Total comments: 1

Patch Set 3 : code review 3529042: reflect: add Append and AppendSlice functions. #

Total comments: 1

Patch Set 4 : code review 3529042: reflect: add Append and AppendSlice functions. #

Patch Set 5 : code review 3529042: reflect: add Append and AppendSlice functions. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+94 lines, -1 line) Patch
M src/pkg/reflect/all_test.go View 1 2 3 1 chunk +48 lines, -1 line 0 comments Download
M src/pkg/reflect/value.go View 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 18
nigeltao
Hello r (cc: golang-dev@googlegroups.com), I'd like you to review this change.
14 years, 6 months ago (2010-12-12 11:44:04 UTC) #1
nigeltao_gnome
I think reflect.Append should take ...Value and not ...interface{}. Let me know if you disagree. ...
14 years, 6 months ago (2010-12-12 11:52:15 UTC) #2
rog
On 12 December 2010 11:52, Nigel Tao <nigel.tao.gnome@gmail.com> wrote: > I think reflect.Append should take ...
14 years, 6 months ago (2010-12-12 11:55:43 UTC) #3
nigeltao_gnome
I'm not sure if Gustavo Niemeyer's patch is 100% correct. He might be able to ...
14 years, 6 months ago (2010-12-12 12:05:48 UTC) #4
rog
i wouldn't want to lose the ability to copy from arrays with reflection. On 12 ...
14 years, 6 months ago (2010-12-12 12:48:57 UTC) #5
niemeyer
> I'm not sure if Gustavo Niemeyer's patch is 100% correct. He might be > ...
14 years, 6 months ago (2010-12-12 13:32:14 UTC) #6
niemeyer
> No need to wonder. The patch is there, so just give it a try. ...
14 years, 6 months ago (2010-12-12 13:35:41 UTC) #7
r
http://codereview.appspot.com/3529042/diff/4/src/pkg/reflect/all_test.go File src/pkg/reflect/all_test.go (right): http://codereview.appspot.com/3529042/diff/4/src/pkg/reflect/all_test.go#newcode521 src/pkg/reflect/all_test.go:521: } this and TestCopy should probably be table-driven. it's ...
14 years, 6 months ago (2010-12-12 17:31:26 UTC) #8
nigeltao_gnome
On 13/12/2010, r@golang.org <r@golang.org> wrote: > http://codereview.appspot.com/3529042/diff/4/src/pkg/reflect/all_test.go#newcode521 > src/pkg/reflect/all_test.go:521: } > this and TestCopy should ...
14 years, 6 months ago (2010-12-12 21:24:12 UTC) #9
niemeyer
> Also, any opinion on removing ArrayOrSliceValue and restricting > reflect.Copy to only work on ...
14 years, 6 months ago (2010-12-12 22:13:30 UTC) #10
nigeltao_gnome
On 13 December 2010 09:13, <n13m3y3r@gmail.com> wrote: >> Also, any opinion on removing ArrayOrSliceValue and ...
14 years, 6 months ago (2010-12-12 22:28:30 UTC) #11
nigeltao_gnome
On 13 December 2010 08:24, Nigel Tao <nigel.tao.gnome@gmail.com> wrote: > Also, any opinion on removing ...
14 years, 6 months ago (2010-12-12 22:29:11 UTC) #12
niemeyer
> Yes, I know this, but I'd still rather remove ArrayOrSliceValue and > restrict reflect.Append ...
14 years, 6 months ago (2010-12-12 22:42:21 UTC) #13
nigeltao_gnome
On 13 December 2010 08:24, Nigel Tao <nigel.tao.gnome@gmail.com> wrote: > On 13/12/2010, r@golang.org <r@golang.org> wrote: ...
14 years, 6 months ago (2010-12-14 01:04:05 UTC) #14
r
i don't see why ArrayOrSliceValue should disappear. it's useful in other contexts. and as far ...
14 years, 6 months ago (2010-12-14 04:00:27 UTC) #15
nigeltao_gnome
On 14/12/2010, r@golang.org <r@golang.org> wrote: > i don't see why ArrayOrSliceValue should disappear. it's useful ...
14 years, 6 months ago (2010-12-14 12:21:12 UTC) #16
r
LGTM
14 years, 6 months ago (2010-12-14 19:29:10 UTC) #17
nigeltao
14 years, 6 months ago (2010-12-14 21:50:03 UTC) #18
*** Submitted as http://code.google.com/p/go/source/detail?r=68c41dda4423 ***

reflect: add Append and AppendSlice functions.

R=r, nigeltao_gnome, rog, niemeyer
CC=golang-dev
http://codereview.appspot.com/3529042
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b