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

Issue 5444053: code review 5444053: spec: var x = 'a' defaults to type rune (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by rsc
Modified:
14 years ago
Reviewers:
r, r2
CC:
gri, r, r2, adg, iant2, ken3, golang-dev
Visibility:
Public.

Description

spec: var x = 'a' defaults to type rune

Patch Set 1 #

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

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

Total comments: 11

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

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

Total comments: 6

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

Total comments: 7

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

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

Messages

Total messages: 42
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
14 years ago (2011-12-07 22:00:48 UTC) #1
gri
I am strongly in favor of the ordering character, integer, floating point, complex (32bit -> ...
14 years ago (2011-12-07 22:12:37 UTC) #2
rsc
On Wed, Dec 7, 2011 at 17:12, <gri@golang.org> wrote: > I am strongly in favor ...
14 years ago (2011-12-07 22:22:45 UTC) #3
gri
On Wed, Dec 7, 2011 at 2:22 PM, Russ Cox <rsc@golang.org> wrote: > On Wed, ...
14 years ago (2011-12-07 22:36:30 UTC) #4
r
http://codereview.appspot.com/5444053/diff/5001/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/5444053/diff/5001/doc/go_spec.html#newcode517 doc/go_spec.html:517: <i>character constants</i>, On 2011/12/07 22:12:37, gri wrote: > I ...
14 years ago (2011-12-08 00:30:14 UTC) #5
rsc
On Wed, Dec 7, 2011 at 19:30, <r@golang.org> wrote: >> I would mention them before ...
14 years ago (2011-12-08 02:56:54 UTC) #6
r2
On Dec 7, 2011, at 6:56 PM, Russ Cox wrote: > On Wed, Dec 7, ...
14 years ago (2011-12-08 04:11:23 UTC) #7
adg
edit: Just saw Rob's mail, and my point is essentially the same. On 8 December ...
14 years ago (2011-12-08 04:14:02 UTC) #8
gri
[resending - this time to everybody - GMail flaking out on me] On Wed, Dec ...
14 years ago (2011-12-08 05:27:04 UTC) #9
iant2
Russ Cox <rsc@golang.org> writes: > On Wed, Dec 7, 2011 at 19:30, <r@golang.org> wrote: >>> ...
14 years ago (2011-12-08 05:34:00 UTC) #10
adg
On 8 December 2011 16:27, Robert Griesemer <gri@golang.org> wrote: > The fact is that every ...
14 years ago (2011-12-08 06:08:05 UTC) #11
gri
On Wed, Dec 7, 2011 at 9:33 PM, Ian Lance Taylor <iant@google.com> wrote: > Still, ...
14 years ago (2011-12-08 16:59:18 UTC) #12
gri
PS: I meant to say at the end: "a rune always fits into an int", ...
14 years ago (2011-12-08 17:01:01 UTC) #13
iant2
Robert Griesemer <gri@golang.org> writes: > Looking at rsc's CL again, by > far the majority ...
14 years ago (2011-12-08 17:49:01 UTC) #14
r2
A counterproposal for your consideration: 'a' is an untyped integer constant. That's the status quo, ...
14 years ago (2011-12-08 17:55:33 UTC) #15
gri
On Thu, Dec 8, 2011 at 9:48 AM, Ian Lance Taylor <iant@google.com> wrote: > Robert ...
14 years ago (2011-12-08 17:56:42 UTC) #16
rsc
On Thu, Dec 8, 2011 at 11:59, Robert Griesemer <gri@golang.org> wrote: > There are two ...
14 years ago (2011-12-08 17:59:27 UTC) #17
gri
On Thu, Dec 8, 2011 at 9:59 AM, Russ Cox <rsc@golang.org> wrote: > On Thu, ...
14 years ago (2011-12-08 18:22:20 UTC) #18
gri
It seems to me that at the heart of proposal #1 is the feeling that ...
14 years ago (2011-12-08 18:29:52 UTC) #19
rsc
On Thu, Dec 8, 2011 at 13:22, Robert Griesemer <gri@golang.org> wrote: > I don't understand ...
14 years ago (2011-12-08 18:32:23 UTC) #20
rsc
On Thu, Dec 8, 2011 at 13:29, Robert Griesemer <gri@golang.org> wrote: > It seems to ...
14 years ago (2011-12-08 18:37:52 UTC) #21
r2
I spoke to Ken and he suggested comparing these two declarations, x := rune(61)+1 y ...
14 years ago (2011-12-08 19:01:37 UTC) #22
gri
I am all for moving forward. But I am not convinced that this is the ...
14 years ago (2011-12-08 19:24:36 UTC) #23
gri
How is it different from: x := int(61)+1.0 y := 61 + 1.0 ? x ...
14 years ago (2011-12-08 19:25:03 UTC) #24
r2
On Dec 8, 2011, at 11:22 AM, Robert Griesemer wrote: > How is it different ...
14 years ago (2011-12-08 19:37:33 UTC) #25
gri
On Thu, Dec 8, 2011 at 11:37 AM, Rob 'Commander' Pike <r@google.com> wrote: > > ...
14 years ago (2011-12-08 20:44:55 UTC) #26
ken3
i do not understand robert's argument. 'a' is a typed constant with a value. rune(0x61) ...
14 years ago (2011-12-08 20:56:22 UTC) #27
gri
they would be the same if 'a' were a typed constant but 'a' is an ...
14 years ago (2011-12-08 21:49:02 UTC) #28
rsc
On Thu, Dec 8, 2011 at 16:49, Robert Griesemer <gri@golang.org> wrote: > but 'a' is ...
14 years ago (2011-12-08 21:53:26 UTC) #29
gri
On Thu, Dec 8, 2011 at 1:53 PM, Russ Cox <rsc@golang.org> wrote: > On Thu, ...
14 years ago (2011-12-08 22:06:32 UTC) #30
rsc
PTAL On Wed, Dec 7, 2011 at 19:30, <r@golang.org> wrote: > doc/go_spec.html:3420: the kind that ...
14 years ago (2011-12-08 22:11:17 UTC) #31
gri
Independent of the outcome of the rune default discussion, I think the enumeration of the ...
14 years ago (2011-12-08 22:22:39 UTC) #32
rsc
PTAL
14 years ago (2011-12-08 22:29:12 UTC) #33
gri
http://codereview.appspot.com/5444053/diff/27001/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/5444053/diff/27001/doc/go_spec.html#newcode520 doc/go_spec.html:520: and <i>string constants</i>. Integer, character, floating-point, Character, integer, ...
14 years ago (2011-12-08 22:45:41 UTC) #34
rsc
PTAL http://codereview.appspot.com/5444053/diff/27001/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/5444053/diff/27001/doc/go_spec.html#newcode520 doc/go_spec.html:520: and <i>string constants</i>. Integer, character, floating-point, On 2011/12/08 ...
14 years ago (2011-12-08 22:49:23 UTC) #35
gri
Leaving for r. http://codereview.appspot.com/5444053/diff/23005/doc/go_spec.html File doc/go_spec.html (right): http://codereview.appspot.com/5444053/diff/23005/doc/go_spec.html#newcode3421 doc/go_spec.html:3421: the kind that appears later in ...
14 years ago (2011-12-08 22:55:44 UTC) #36
r
LGTM but there's a wording change here others might want to check http://codereview.appspot.com/5444053/diff/23005/doc/go_spec.html File doc/go_spec.html ...
14 years ago (2011-12-09 00:12:30 UTC) #37
rsc
I chose 'character constant' to avoid the type name rune. It has rune type by ...
14 years ago (2011-12-09 00:52:24 UTC) #38
r2
On Dec 8, 2011, at 4:52 PM, Russ Cox wrote: > I chose 'character constant' ...
14 years ago (2011-12-09 00:59:08 UTC) #39
rsc
*** Submitted as http://code.google.com/p/go/source/detail?r=1100c91c2087 *** spec: var x = 'a' defaults to type rune R=gri, ...
14 years ago (2011-12-09 02:48:28 UTC) #40
ken3
i dont understand the line const Σ = 1 - 0.707 // (untyped complex constant) ...
14 years ago (2011-12-10 08:13:21 UTC) #41
rsc
14 years ago (2011-12-10 16:27:49 UTC) #42
On Sat, Dec 10, 2011 at 03:13, Ken Thompson <ken@google.com> wrote:
> i dont understand the line
>
> const Σ = 1 - 0.707        //            (untyped complex constant)
>
> there should be an i in there somewhere.

oops.  i lost the i in 0.707i during copy+paste.
thanks.

russ
Sign in to reply to this message.

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