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

Issue 6725053: code review 6725053: go spec: define make() restrictions as for index expressions (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by gri
Modified:
12 years, 7 months ago
Reviewers:
CC:
r, rsc, iant, ken2, golang-dev
Visibility:
Public.

Description

go spec: define make() restrictions as for index expressions This is a language change: Until now, the spec required run- time panics for some of these errors. Note that gc and gccgo implemented this inconsistently, and that both compilers already reported compile-time errors in some cases. This change makes make() behave along the same vein as index expressions. This addresses the spec aspect of issue 4085.

Patch Set 1 #

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

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

Patch Set 4 : diff -r 370bc7ed6c28 https://code.google.com/p/go #

Total comments: 2

Patch Set 5 : diff -r eb854c88d4a6 https://code.google.com/p/go #

Patch Set 6 : diff -r eb854c88d4a6 https://code.google.com/p/go #

Patch Set 7 : diff -r caf040d030f3 https://code.google.com/p/go #

Patch Set 8 : diff -r caf040d030f3 https://code.google.com/p/go #

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

Messages

Total messages: 8
gri
Hello r@golang.org, rsc@golang.org, iant@golang.org, ken@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to ...
12 years, 8 months ago (2012-10-17 18:46:04 UTC) #1
iant
LGTM
12 years, 8 months ago (2012-10-17 18:48:23 UTC) #2
r
https://codereview.appspot.com/6725053/diff/1002/doc/go_spec.html File doc/go_spec.html (right): https://codereview.appspot.com/6725053/diff/1002/doc/go_spec.html#newcode4928 doc/go_spec.html:4928: a <a href="#Run_time_panics">run-time panic</a> occurs. this is a good ...
12 years, 8 months ago (2012-10-17 22:17:32 UTC) #3
gri
You have a valid concern and I voiced the same worry before. I have convinced ...
12 years, 7 months ago (2012-10-18 18:36:12 UTC) #4
gri
Hello r@golang.org, rsc@golang.org, iant@golang.org, ken@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
12 years, 7 months ago (2012-10-18 18:36:38 UTC) #5
r
LGTM weasely but sure, let's go with that
12 years, 7 months ago (2012-10-19 03:27:02 UTC) #6
rsc
LGTM
12 years, 7 months ago (2012-10-19 17:09:15 UTC) #7
gri
12 years, 7 months ago (2012-10-19 17:11:13 UTC) #8
*** Submitted as http://code.google.com/p/go/source/detail?r=fcfd4ff9b973 ***

go spec: define make() restrictions as for index expressions

This is a language change: Until now, the spec required run-
time panics for some of these errors. Note that gc and gccgo
implemented this inconsistently, and that both compilers already
reported compile-time errors in some cases. This change makes
make() behave along the same vein as index expressions.

This addresses the spec aspect of issue 4085.

R=r, rsc, iant, ken
CC=golang-dev
http://codereview.appspot.com/6725053
Sign in to reply to this message.

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