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

Issue 5671096: code review 5671096: spec: make all comparison results untyped bool (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by rsc
Modified:
13 years, 3 months ago
Reviewers:
CC:
golang-dev, r, bradfitz, gri, iant, kevlar
Visibility:
Public.

Description

spec: make all comparison results untyped bool Or, depending on your point of view, make the comparisons satisfy any surrounding boolean type. Also, fix a few foo_bar -> fooBar in code fragments. Fixes issue 2561.

Patch Set 1 #

Patch Set 2 : diff -r ea45ac88790b https://code.google.com/p/go/ #

Patch Set 3 : diff -r ef2ea0f1756e https://code.google.com/p/go/ #

Total comments: 3

Patch Set 4 : diff -r 19da4a6194b9 https://go.googlecode.com/hg/ #

Total comments: 6

Patch Set 5 : diff -r 0cb382964bd6 https://go.googlecode.com/hg/ #

Total comments: 2

Patch Set 6 : diff -r 7d0f321ea87c https://go.googlecode.com/hg/ #

Total comments: 3

Patch Set 7 : diff -r ba4f5ef37b6d https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -20 lines) Patch
M doc/go_spec.html View 1 2 3 4 5 6 13 chunks +37 lines, -20 lines 0 comments Download

Messages

Total messages: 21
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
13 years, 3 months ago (2012-02-18 21:10:32 UTC) #1
r
LGTM that's one way to fix it
13 years, 3 months ago (2012-02-18 21:19:38 UTC) #2
bradfitz
Update cmd/api in this CL too? It has a case for ideal-bool. On Sat, Feb ...
13 years, 3 months ago (2012-02-18 23:28:45 UTC) #3
rsc
I'll send a different CL for cmd/api.
13 years, 3 months ago (2012-02-18 23:30:06 UTC) #4
bradfitz
http://codereview.appspot.com/5671096/diff/3001/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/5671096/diff/3001/doc/go_spec.html#newcode2241 doc/go_spec.html:2241: func(ch chan int) { ch <- ACK }(replyChan) all ...
13 years, 3 months ago (2012-02-18 23:31:04 UTC) #5
gri
It seems to me that this change is making bools more unusual than all the ...
13 years, 3 months ago (2012-02-21 19:46:48 UTC) #6
rsc
On Tue, Feb 21, 2012 at 14:46, <gri@golang.org> wrote: > Instead, one could just have ...
13 years, 3 months ago (2012-02-21 20:02:43 UTC) #7
rsc
Hello golang-dev@googlegroups.com, r@golang.org, bradfitz@golang.org, gri@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 3 months ago (2012-02-21 20:41:29 UTC) #8
rsc
This new version of the change should be less intrusive. I will do the compiler ...
13 years, 3 months ago (2012-02-21 20:42:27 UTC) #9
r
http://codereview.appspot.com/5671096/diff/8001/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/5671096/diff/8001/doc/go_spec.html#newcode3095 doc/go_spec.html:3095: type Bool bool s/Bool/MyBool/ or /Truth/ or something more ...
13 years, 3 months ago (2012-02-21 21:03:49 UTC) #10
rsc
PTAL
13 years, 3 months ago (2012-02-21 21:13:39 UTC) #11
r
LGTM
13 years, 3 months ago (2012-02-21 21:15:20 UTC) #12
gri
I like this change much better. Should we make the analogous change for ,ok operations? ...
13 years, 3 months ago (2012-02-21 21:28:56 UTC) #13
rsc
I am inclined to leave ,ok alone. It has not been a problem.
13 years, 3 months ago (2012-02-21 21:35:44 UTC) #14
gri
LGTM http://codereview.appspot.com/5671096/diff/11001/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/5671096/diff/11001/doc/go_spec.html#newcode3 doc/go_spec.html:3: "Subtitle": "Version of February 16, 2012" up-date http://codereview.appspot.com/5671096/diff/11001/doc/go_spec.html#newcode3099 ...
13 years, 3 months ago (2012-02-21 21:52:54 UTC) #15
rsc
done > http://codereview.appspot.com/5671096/diff/11001/doc/go_spec.html#newcode3 > doc/go_spec.html:3: "Subtitle": "Version of February 16, 2012" > up-date > > ...
13 years, 3 months ago (2012-02-21 22:29:21 UTC) #16
iant
LGTM http://codereview.appspot.com/5671096/diff/11004/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/5671096/diff/11004/doc/go_spec.html#newcode3089 doc/go_spec.html:3089: The result of a comparison can assigned to ...
13 years, 3 months ago (2012-02-22 01:31:17 UTC) #17
kevlar
http://codereview.appspot.com/5671096/diff/11004/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/5671096/diff/11004/doc/go_spec.html#newcode3531 doc/go_spec.html:3531: different kinds of untyped constants, the operation and, for ...
13 years, 3 months ago (2012-02-22 01:35:53 UTC) #18
rsc
On Tue, Feb 21, 2012 at 20:35, <kevlar@google.com> wrote: > operation and, for non-boolean operations, ...
13 years, 3 months ago (2012-02-22 03:03:25 UTC) #19
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=61e30316d672 *** spec: make all comparison results untyped bool Or, depending on ...
13 years, 3 months ago (2012-02-22 03:04:39 UTC) #20
rsc
13 years, 3 months ago (2012-02-22 03:12:36 UTC) #21
On Tue, Feb 21, 2012 at 20:31,  <iant@golang.org> wrote:
> The spec usually does have a comma before "or" or "and" in a list, so
> this comma should probably be kept.

done.  really i just forgot to put it back; not intentional.
Sign in to reply to this message.

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