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

Issue 4243072: code review 4243072: go code: replace closed(c) with x, ok := <-c (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by rsc
Modified:
13 years, 1 month ago
Reviewers:
CC:
golang-dev, rog, bradfitzgoog, r
Visibility:
Public.

Description

go code: replace closed(c) with x, ok := <-c

Patch Set 1 #

Patch Set 2 : diff -r 56e6287f4be7 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 56e6287f4be7 https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 4 : diff -r 54d4fce9ca0c https://go.googlecode.com/hg #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -147 lines) Patch
M src/pkg/netchan/common.go View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/pkg/netchan/export.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/netchan/import.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/netchan/netchan_test.go View 1 4 chunks +8 lines, -8 lines 0 comments Download
M src/pkg/os/inotify/inotify_linux_test.go View 1 2 3 chunks +7 lines, -9 lines 0 comments Download
M src/pkg/reflect/all_test.go View 1 2 3 chunks +14 lines, -23 lines 0 comments Download
M src/pkg/reflect/value.go View 1 2 chunks +29 lines, -27 lines 0 comments Download
M src/pkg/template/template.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/pkg/testing/script/script.go View 1 1 chunk +2 lines, -2 lines 0 comments Download
M test/chan/perm.go View 1 1 chunk +6 lines, -9 lines 0 comments Download
M test/chan/select3.go View 1 2 chunks +18 lines, -2 lines 0 comments Download
M test/closedchan.go View 1 9 chunks +107 lines, -52 lines 0 comments Download
M test/ddd1.go View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M test/named1.go View 1 2 2 chunks +3 lines, -6 lines 0 comments Download

Messages

Total messages: 6
rsc
Hello golang-dev (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 1 month ago (2011-03-10 14:50:58 UTC) #1
rog
On 2011/03/10 14:50:58, rsc wrote: > Hello golang-dev (cc: mailto:golang-dev@googlegroups.com), > > I'd like you ...
13 years, 1 month ago (2011-03-10 15:05:31 UTC) #2
bradfitzgoog
LGTM http://codereview.appspot.com/4243072/diff/5001/src/pkg/os/inotify/inotify_linux_test.go File src/pkg/os/inotify/inotify_linux_test.go (left): http://codereview.appspot.com/4243072/diff/5001/src/pkg/os/inotify/inotify_linux_test.go#oldcode68 src/pkg/os/inotify/inotify_linux_test.go:68: for !closed(eventstream) { nice killing this http://codereview.appspot.com/4243072/diff/5001/src/pkg/os/inotify/inotify_linux_test.go File ...
13 years, 1 month ago (2011-03-10 15:09:42 UTC) #3
rog
On 10 March 2011 15:09, <bradfitz@google.com> wrote: > http://codereview.appspot.com/4243072/diff/5001/src/pkg/os/inotify/inotify_linux_test.go#newcode72 > src/pkg/os/inotify/inotify_linux_test.go:72: case <-time.After(1e9): > ooh, ...
13 years, 1 month ago (2011-03-10 15:20:34 UTC) #4
r
LGTM
13 years, 1 month ago (2011-03-10 17:17:34 UTC) #5
rsc
13 years, 1 month ago (2011-03-11 19:47:47 UTC) #6
*** Submitted as 604d3ae2f22e ***

go code: replace closed(c) with x, ok := <-c

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

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