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

Issue 156079: code review 156079: add Take, TakeWhile, Drop, DropWhile to exp/iterable

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 5 months ago by sigpipe
Modified:
14 years, 5 months ago
Reviewers:
dsymonds, rsc
CC:
dsymonds, rsc
Visibility:
Public.

Description

add Take, TakeWhile, Drop, DropWhile to exp/iterable

Patch Set 1 #

Patch Set 2 : code review 156079: add Take, TakeWhile, Drop, DropWhile to exp/iterable #

Total comments: 5

Patch Set 3 : code review 156079: add Take, TakeWhile, Drop, DropWhile to exp/iterable #

Total comments: 3

Patch Set 4 : code review 156079: add Take, TakeWhile, Drop, DropWhile to exp/iterable #

Total comments: 6

Patch Set 5 : code review 156079: add Take, TakeWhile, Drop, DropWhile to exp/iterable #

Total comments: 2

Patch Set 6 : code review 156079: add Take, TakeWhile, Drop, DropWhile to exp/iterable #

Total comments: 6

Patch Set 7 : code review 156079: add Take, TakeWhile, Drop, DropWhile to exp/iterable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -0 lines) Patch
M src/pkg/exp/iterable/iterable.go View 1 2 3 4 5 6 1 chunk +74 lines, -0 lines 0 comments Download
M src/pkg/exp/iterable/iterable_test.go View 1 2 3 4 5 6 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 23
sigpipe
Hello golang-dev@golang.org, r, rsc, I'd like you to review the following change.
14 years, 5 months ago (2009-11-18 17:41:38 UTC) #1
rsc
A few comments. David Symonds is the right reviewer. http://codereview.appspot.com/156079/diff/6/1001 File src/pkg/exp/iterable/iterable.go (right): http://codereview.appspot.com/156079/diff/6/1001#newcode146 src/pkg/exp/iterable/iterable.go:146: ...
14 years, 5 months ago (2009-11-18 17:51:10 UTC) #2
sigpipe
Thanks, Russ. I've addressed your comments and uploaded a new version. I missed the fact ...
14 years, 5 months ago (2009-11-18 18:23:01 UTC) #3
sigpipe
PTAL: updated with comments from rsc
14 years, 5 months ago (2009-11-18 18:24:33 UTC) #4
dsymonds
LGTM I probably would have named Take/TakeWhile as First/FirstWhile, but that's fine. Looks good over ...
14 years, 5 months ago (2009-11-18 20:59:34 UTC) #5
sigpipe
On 2009/11/18 20:59:34, dsymonds1 wrote: > LGTM > > I probably would have named Take/TakeWhile ...
14 years, 5 months ago (2009-11-18 21:27:22 UTC) #6
sigpipe
On 2009/11/18 20:59:34, dsymonds1 wrote: > http://codereview.appspot.com/156079/diff/10/1005#newcode196 > src/pkg/exp/iterable/iterable.go:196: func DropWhile(iter Iterable, f > func(interface{}) ...
14 years, 5 months ago (2009-11-18 21:43:44 UTC) #7
sigpipe
PTAL: updated with comments from dysmonds1
14 years, 5 months ago (2009-11-18 22:13:26 UTC) #8
dsymonds
LGTM Just adjustments to the documentation. Russ, feel free to commit this after these changes ...
14 years, 5 months ago (2009-11-18 23:01:00 UTC) #9
rsc
http://codereview.appspot.com/156079/diff/1011/16 File src/pkg/exp/iterable/iterable.go (right): http://codereview.appspot.com/156079/diff/1011/16#newcode184 src/pkg/exp/iterable/iterable.go:184: for ; m > 0; m-- { This will ...
14 years, 5 months ago (2009-11-18 23:03:18 UTC) #10
sigpipe
Updated doc comments with suggestions from dsymonds1. Added check for closed channel in Drop and ...
14 years, 5 months ago (2009-11-18 23:24:11 UTC) #11
rsc
http://codereview.appspot.com/156079/diff/18/1018 File src/pkg/exp/iterable/iterable.go (right): http://codereview.appspot.com/156079/diff/18/1018#newcode185 src/pkg/exp/iterable/iterable.go:185: if <-it == nil { This is not right. ...
14 years, 5 months ago (2009-11-18 23:52:34 UTC) #12
sigpipe
On 2009/11/18 23:52:34, rsc wrote: > http://codereview.appspot.com/156079/diff/18/1018 > File src/pkg/exp/iterable/iterable.go (right): > > http://codereview.appspot.com/156079/diff/18/1018#newcode185 > ...
14 years, 5 months ago (2009-11-19 00:11:38 UTC) #13
sigpipe
fixed code to use loop rsc suggested to properly handle input channel closing prematurely.
14 years, 5 months ago (2009-11-19 00:51:17 UTC) #14
rsc
david, one last look?
14 years, 5 months ago (2009-11-20 04:20:22 UTC) #15
dsymonds
http://codereview.appspot.com/156079/diff/1022/22 File src/pkg/exp/iterable/iterable.go (right): http://codereview.appspot.com/156079/diff/1022/22#newcode150 src/pkg/exp/iterable/iterable.go:150: m := n; You could flatten this a bit: ...
14 years, 5 months ago (2009-11-20 04:27:20 UTC) #16
sigpipe
Remove unnecessary return statements. Flatten code in Take as suggested. Add additional unit tests for ...
14 years, 5 months ago (2009-11-20 17:13:27 UTC) #17
rsc
LGTM will submit with your other change
14 years, 5 months ago (2009-11-20 19:40:35 UTC) #18
rsc
sorry, wrong CL. still waiting for a final LGTM from dsymonds here
14 years, 5 months ago (2009-11-20 19:40:57 UTC) #19
rsc
14 years, 5 months ago (2009-11-20 19:41:44 UTC) #20
dsymonds
LGTM Thanks!
14 years, 5 months ago (2009-11-20 23:02:27 UTC) #21
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=949a68cffc96 *** add Take, TakeWhile, Drop, DropWhile to exp/iterable R=dsymonds1, rsc http://codereview.appspot.com/156079 ...
14 years, 5 months ago (2009-11-24 19:31:17 UTC) #22
rsc
14 years, 5 months ago (2009-12-02 10:01:55 UTC) #23

          
Sign in to reply to this message.

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